Skip to content

Commit

Permalink
fix people being able to kill a marine early
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoe2013 committed Jul 18, 2024
1 parent de32c7d commit 59d5cee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/datums/tutorial/xenomorph/abomination.dm
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
/datum/tutorial/xenomorph/abomination/proc/frenzy_tutorial_4()
var/mob/living/carbon/human/marine = new(loc_from_corner(4, 2))
add_to_tracking_atoms(marine)
RegisterSignal(marine, COMSIG_MOB_DEATH, PROC_REF(on_marine_early_death))
arm_equipment(marine, /datum/equipment_preset/uscm/private_equipped)

var/datum/action/frenzy = give_action(xeno, /datum/action/xeno_action/activable/feralfrenzy)
Expand Down Expand Up @@ -202,6 +203,7 @@
return

UnregisterSignal(frenzy, COMSIG_XENO_ACTION_USED)
UnregisterSignal(marine, COMSIG_MOB_DEATH)
remove_highlight(frenzy.button)
message_to_player("Good. As you may have noticed, the AOE version of <b>Feral Frenzy</b> takes longer to wind up, in addition to doing less overall damage.")
addtimer(CALLBACK(src, PROC_REF(kill_marines)), 6 SECONDS)
Expand Down Expand Up @@ -245,3 +247,10 @@
tutorial_end_in(7 SECONDS, TRUE)

// END OF SCRIPTING

/// In case a marine dies early to prevent softlocks
/datum/tutorial/xenomorph/abomination/proc/on_marine_early_death(datum/source)
SIGNAL_HANDLER

TUTORIAL_ATOM_FROM_TRACKING(/mob/living/carbon/human, marine)
marine.rejuvenate()

0 comments on commit 59d5cee

Please sign in to comment.