Skip to content

Commit

Permalink
grace period rework + overwatch fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveloopers committed May 25, 2024
1 parent 2294031 commit 39aad11
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/datums/components/status_effect_component.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

/datum/component/status_effect
var/has_immunity = FALSE
var/grace_period = 20
var/grace_period = 5

/datum/component/status_effect/InheritComponent(datum/component/C, i_am_original)
if(has_immunity)
grace_period = initial(grace_period)

/datum/component/status_effect/Initialize()
. = ..()
Expand Down
7 changes: 7 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/XenoOverwatch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@
if (observed_xeno && (observed_xeno.stat == DEAD || QDELETED(observed_xeno)))
overwatch(null, TRUE)

if(observed_xeno && HAS_TRAIT(observed_xeno, TRAIT_HIVEMIND_INTERFERENCE))
to_chat(src, SPAN_XENOWARNING("Our sister's psychic connection is cut off!"))
overwatch(null, TRUE)

if(HAS_TRAIT(src, TRAIT_HIVEMIND_INTERFERENCE))
overwatch(null, TRUE)

/mob/living/carbon/xenomorph/proc/overwatch_handle_mob_move_or_look(mob/living/carbon/xenomorph/mover, actually_moving, direction, specific_direction)
SIGNAL_HANDLER

Expand Down

0 comments on commit 39aad11

Please sign in to comment.