Skip to content

Commit

Permalink
Revert "trying again..."
Browse files Browse the repository at this point in the history
This reverts commit 49c5d0a.
  • Loading branch information
K3Licia committed Nov 28, 2024
1 parent 49c5d0a commit 74cb4c4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions code/datums/quirks/negative_quirks/system_shock.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
quirk_flags = QUIRK_HUMAN_ONLY

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

else
/datum/quirk/system_shock/remove(TRAIT_SYSTEM_SHOCK)
/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 74cb4c4

Please sign in to comment.