stop the pills (#18703)

* RedPills Processing

Now you have to use START_PROCESSING(SSname, thing) (and STOP_PROCESSING)

* Fixes a minor bug.
This commit is contained in:
Kyle Spier-Swenson
2016-06-20 12:07:44 +02:00
committed by AnturK
parent c480ad71ee
commit 0d6bbbb412
90 changed files with 424 additions and 416 deletions
@@ -29,16 +29,16 @@
/obj/effect/particle_effect/foam/New(loc)
..(loc)
create_reagents(1000) //limited by the size of the reagent holder anyway.
SSfastprocess.processing |= src
START_PROCESSING(SSfastprocess, src)
playsound(src, 'sound/effects/bubbles2.ogg', 80, 1, -3)
/obj/effect/particle_effect/foam/Destroy()
SSfastprocess.processing.Remove(src)
STOP_PROCESSING(SSfastprocess, src)
return ..()
/obj/effect/particle_effect/foam/proc/kill_foam()
SSfastprocess.processing.Remove(src)
STOP_PROCESSING(SSfastprocess, src)
if(metal)
var/obj/structure/foamedmetal/M = new(src.loc)
M.metal = metal
@@ -30,15 +30,15 @@
/obj/effect/particle_effect/smoke/New()
..()
create_reagents(500)
SSobj.processing |= src
START_PROCESSING(SSobj, src)
/obj/effect/particle_effect/smoke/Destroy()
SSobj.processing.Remove(src)
STOP_PROCESSING(SSobj, src)
return ..()
/obj/effect/particle_effect/smoke/proc/kill_smoke()
SSobj.processing.Remove(src)
STOP_PROCESSING(SSobj, src)
spawn(0)
fade_out()
spawn(10)