Skip to content

Commit

Permalink
exploit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Aug 25, 2023
1 parent ff5c795 commit 2f809dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/items/devices/vulture_spotter.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
item_state = "electronic"
flags_atom = FPRINT|CONDUCT

/obj/item/device/vulture_spotter_tripod/examine(mob/user)
/obj/item/device/vulture_spotter_tripod/get_examine_text(mob/user)
. = ..()
. += SPAN_NOTICE("[src] can be set down by <b>using in-hand</b>.")

Expand Down
8 changes: 7 additions & 1 deletion code/game/objects/structures/vulture_spotter.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
QDEL_NULL(unscope_action)
return ..()

/obj/structure/vulture_spotter_tripod/examine(mob/user)
/obj/structure/vulture_spotter_tripod/get_examine_text(mob/user)
. = ..()
if(scope_attached)
. += SPAN_NOTICE("You can remove the scope from [src] with a <b>screwdriver</b>.")
Expand Down Expand Up @@ -136,6 +136,9 @@
user.pixel_y = 0

/obj/structure/vulture_spotter_tripod/proc/on_scope_attach(mob/user, obj/structure/vulture_spotter_tripod/scope)
if(scope_attached)
return

user.visible_message(SPAN_NOTICE("[user] attaches [scope] to [src]."), SPAN_NOTICE("You attach [scope] to [src]."))
icon_state = "vulture_scope"
setDir(user.dir)
Expand All @@ -145,6 +148,9 @@
qdel(scope)

/obj/structure/vulture_spotter_tripod/proc/on_screwdriver(mob/user)
if(!scope_attached)
to_chat(user, SPAN_NOTICE("You don't need a screwdriver to pick this up!"))
return
user.visible_message(SPAN_NOTICE("[user] unscrews the scope from [src] before detaching it."), SPAN_NOTICE("You unscrew the scope from [src], detaching it."))
icon_state = initial(icon_state)
unscope()
Expand Down

0 comments on commit 2f809dc

Please sign in to comment.