Skip to content

Commit

Permalink
can't destroy the spotter tools either
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Aug 25, 2023
1 parent e568d29 commit 3e9f041
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/game/objects/items/devices/vulture_spotter.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
icon_state = "vulture_scope"
item_state = "electronic"
flags_atom = FPRINT|CONDUCT
unacidable = TRUE
indestructible = TRUE
/// A weakref to the corresponding rifle
var/datum/weakref/bound_rifle

Expand All @@ -22,6 +24,8 @@
icon_state = "vulture_tripod"
item_state = "electronic"
flags_atom = FPRINT|CONDUCT
unacidable = TRUE
indestructible = TRUE

/obj/item/device/vulture_spotter_tripod/get_examine_text(mob/user)
. = ..()
Expand Down
7 changes: 7 additions & 0 deletions code/game/objects/structures/vulture_spotter.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
icon_state = "vulture_tripod"
density = TRUE
anchored = TRUE
unacidable = TRUE
/// Weakref to the associated rifle
var/datum/weakref/bound_rifle
/// Weakref to the scope user, if any
Expand Down Expand Up @@ -32,6 +33,12 @@
QDEL_NULL(unscope_action)
return ..()

/obj/structure/vulture_spotter_tripod/deconstruct(disassembled)
. = ..()
if(scope_attached && bound_rifle)
new /obj/item/device/vulture_spotter_scope(get_turf(src), bound_rifle)
new /obj/item/device/vulture_spotter_tripod(get_turf(src))

/obj/structure/vulture_spotter_tripod/get_examine_text(mob/user)
. = ..()
if(scope_attached)
Expand Down

0 comments on commit 3e9f041

Please sign in to comment.