mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
Forgot a spawn in trigger_side_effects
This commit is contained in:
@@ -61,13 +61,17 @@
|
|||||||
H.monkeyize()
|
H.monkeyize()
|
||||||
|
|
||||||
proc/trigger_side_effect(mob/living/carbon/human/H)
|
proc/trigger_side_effect(mob/living/carbon/human/H)
|
||||||
if(!istype(H)) returngit a
|
spawn
|
||||||
var/tp = pick(typesof(/datum/genetics/side_effect) - /datum/genetics/side_effect)
|
if(!istype(H)) return
|
||||||
var/datum/genetics/side_effect/S = new tp
|
var/tp = pick(typesof(/datum/genetics/side_effect) - /datum/genetics/side_effect)
|
||||||
|
var/datum/genetics/side_effect/S = new tp
|
||||||
|
|
||||||
S.start(H)
|
S.start(H)
|
||||||
spawn(20)
|
spawn(20)
|
||||||
H.Weaken(rand(0, S.duration / 20))
|
if(!istype(H)) return
|
||||||
sleep(S.duration)
|
H.Weaken(rand(0, S.duration / 50))
|
||||||
H.SetWeakened(0)
|
sleep(S.duration)
|
||||||
S.finish(H)
|
|
||||||
|
if(!istype(H)) return
|
||||||
|
H.SetWeakened(0)
|
||||||
|
S.finish(H)
|
||||||
Reference in New Issue
Block a user