Skip to content

Commit

Permalink
Update system_shock.dm
Browse files Browse the repository at this point in the history
Signed-off-by: K3L <[email protected]>
  • Loading branch information
K3Licia authored Nov 29, 2024
1 parent b5ed9e5 commit 8ba289b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/quirks/negative_quirks/system_shock.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
quirk_holder.set_static_vision(knockout_length)
quirk_holder.balloon_alert(quirk_holder, "system rebooting")
to_chat(quirk_holder, span_danger("CRIT&!AL ERR%R: S#STEM REBO#TING."))
addtimer(CALLBACK(src, PROC_REF(knock_out), knockout_length - 0.4 SECONDS), 2 SECONDS)
//The intent with the 0.4 seconds is so that the visual static effect lasts longer than the actual knockout/sleeping effect.
addtimer(CALLBACK(src, PROC_REF(knock_out), knockout_length - 0.4 SECONDS), 2 SECONDS)

/datum/quirk/system_shock/proc/knock_out(length)
quirk_holder.Sleeping(length)

0 comments on commit 8ba289b

Please sign in to comment.