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 28, 2024
1 parent d37a5fd commit aa83106
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/datums/quirks/negative_quirks/system_shock.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
quirk_flags = QUIRK_HUMAN_ONLY

/datum/quirk/system_shock/add(client/client_source)
if(-SPECIES_ANDROID)
RegisterSignals(quirk_holder, list(COMSIG_LIVING_ELECTROCUTE_ACT, COMSIG_LIVING_MINOR_SHOCK), PROC_REF(on_electrocute))
if(SPECIES_ANDROID)

Check failure on line 13 in code/datums/quirks/negative_quirks/system_shock.dm

View workflow job for this annotation

GitHub Actions / Run Linters

control flow condition is a static term

Check failure on line 13 in code/datums/quirks/negative_quirks/system_shock.dm

View workflow job for this annotation

GitHub Actions / Run Linters

if condition is always true
RegisterSignals(quirk_holder, list(COMSIG_LIVING_ELECTROCUTE_ACT, COMSIG_LIVING_MINOR_SHOCK), PROC_REF(on_electrocute))

/datum/quirk/system_shock/remove()
UnregisterSignal(quirk_holder, list(COMSIG_LIVING_ELECTROCUTE_ACT, COMSIG_LIVING_MINOR_SHOCK))


/datum/quirk/system_shock/proc/on_electrocute()
SIGNAL_HANDLER
var/knockout_length = 20 SECONDS + rand(0 SECONDS, 5 SECONDS)
Expand Down

0 comments on commit aa83106

Please sign in to comment.