From a29a0e12e61e742a44b6698ba3979a6ff01b8f60 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Sun, 14 Jun 2015 06:21:42 -0400 Subject: [PATCH] Harvester Spell Fix --- code/datums/spell.dm | 4 ++++ code/game/objects/effects/effect_system.dm | 15 +++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/code/datums/spell.dm b/code/datums/spell.dm index 024b6f3db25..2111c200148 100644 --- a/code/datums/spell.dm +++ b/code/datums/spell.dm @@ -196,6 +196,10 @@ var/list/spells = typesof(/obj/effect/proc_holder/spell) //needed for the badmin var/datum/effect/effect/system/bad_smoke_spread/smoke = new /datum/effect/effect/system/bad_smoke_spread() smoke.set_up(smoke_amt, 0, location) //no idea what the 0 is smoke.start() + else if(smoke_spread == 3) + var/datum/effect/effect/system/sleep_smoke_spread/smoke = new /datum/effect/effect/system/sleep_smoke_spread() + smoke.set_up(smoke_amt, 0, location) // same here + smoke.start() /obj/effect/proc_holder/spell/wizard/proc/cast(list/targets) return diff --git a/code/game/objects/effects/effect_system.dm b/code/game/objects/effects/effect_system.dm index cf41bb42fd0..72c3c4db24f 100644 --- a/code/game/objects/effects/effect_system.dm +++ b/code/game/objects/effects/effect_system.dm @@ -591,6 +591,7 @@ steam.start() -- spawns the effect icon = 'icons/effects/96x96.dmi' pixel_x = -32 pixel_y = -32 + color = "#9C3636" /obj/effect/effect/sleep_smoke/New() ..() @@ -605,12 +606,13 @@ steam.start() -- spawns the effect // if (M.wear_suit, /obj/item/clothing/suit/wizrobe && (M.hat, /obj/item/clothing/head/wizard) && (M.shoes, /obj/item/clothing/shoes/sandal)) // I'll work on it later else M.drop_item() - M:sleeping += 1 + M:sleeping += 5 if (M.coughedtime != 1) M.coughedtime = 1 M.emote("cough") - spawn ( 20 ) - M.coughedtime = 0 + spawn(20) + if(M && M.loc) + M.coughedtime = 0 return /obj/effect/effect/sleep_smoke/Crossed(mob/living/carbon/M as mob ) @@ -621,12 +623,13 @@ steam.start() -- spawns the effect return else M.drop_item() - M:sleeping += 1 + M:sleeping += 5 if (M.coughedtime != 1) M.coughedtime = 1 M.emote("cough") - spawn ( 20 ) - M.coughedtime = 0 + spawn(20) + if(M && M.loc) + M.coughedtime = 0 return /datum/effect/effect/system/sleep_smoke_spread