Skip to content

Commit

Permalink
woe, REM/seconds_per_tick upon thee - TWitch overdoses now respect RE…
Browse files Browse the repository at this point in the history
…M (#25385)

woe flags upon thee

Co-authored-by: Hatterhat <[email protected]>
  • Loading branch information
2 people authored and FFMirrorBot committed Dec 2, 2023
1 parent 78a9403 commit 38e383c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,10 @@

/datum/reagent/drug/twitch/overdose_process(mob/living/carbon/our_guy, seconds_per_tick, times_fired)
. = ..()

our_guy.set_jitter_if_lower(10 SECONDS * REM * seconds_per_tick)

our_guy.adjustOrganLoss(ORGAN_SLOT_HEART, 1 * REM * seconds_per_tick)
our_guy.adjustToxLoss(3, forced = TRUE)
our_guy.adjustOrganLoss(ORGAN_SLOT_HEART, 1 * REM * seconds_per_tick, required_organ_flag = affected_organ_flags)
our_guy.adjustToxLoss(0.25 * REM * seconds_per_tick, updating_health = FALSE, forced = TRUE, required_biotype = affected_biotype)

if(SPT_PROB(5, seconds_per_tick))
to_chat(our_guy, span_danger("You cough up a splatter of blood!"))
Expand All @@ -176,7 +175,6 @@
our_guy.add_filter(TWITCH_OVERDOSE_BLUR_EFFECT, 2, phase_filter(8))
addtimer(CALLBACK(our_guy, TYPE_PROC_REF(/datum, remove_filter), TWITCH_OVERDOSE_BLUR_EFFECT), 0.5 SECONDS)


/// Changes heard message spans into that defined on the drug earlier
/datum/reagent/drug/twitch/proc/distort_hearing(datum/source, list/hearing_args)
SIGNAL_HANDLER
Expand Down

0 comments on commit 38e383c

Please sign in to comment.