Skip to content

Commit

Permalink
Update yaut_items.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Git-Nivrak committed Sep 24, 2024
1 parent fb91eaf commit 53096bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/modules/cm_preds/yaut_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,8 @@
var/datum/effects/tethering/tether_effect
var/tether_range = 5
var/mob/trapped_mob
var/duration = 30 SECONDS
var/disarm_timer
layer = LOWER_ITEM_LAYER
flags_item = ITEM_PREDATOR

Expand Down Expand Up @@ -766,6 +768,7 @@
xeno.AddComponent(/datum/component/status_effect/interference, 100) // Some base interference to give pred time to get some damage in, if it cannot land a single hit during this time pred is cheeks
RegisterSignal(xeno, COMSIG_XENO_PRE_HEAL, PROC_REF(block_heal))
message_all_yautja("A hunting trap has caught something in [get_area_name(loc)]!")
disarm_timer = addtimer(CALLBACK(src, PROC_REF(disarm)), duration, TIMER_UNIQUE|TIMER_STOPPABLE)

/obj/item/hunting_trap/proc/block_heal(mob/living/carbon/xenomorph/xeno)
SIGNAL_HANDLER
Expand Down Expand Up @@ -799,6 +802,8 @@

/obj/item/hunting_trap/proc/disarm(mob/user)
SIGNAL_HANDLER
if(disarm_timer)
deltimer(disarm_timer)
armed = FALSE
anchored = FALSE
icon_state = "yauttrap[armed]"
Expand Down

0 comments on commit 53096bf

Please sign in to comment.