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)
+2 -2
View File
@@ -27,10 +27,10 @@
/obj/effect/forcefield/mime/New()
..()
last_process = world.time
SSobj.processing |= src
START_PROCESSING(SSobj, src)
/obj/effect/forcefield/mime/process()
timeleft -= (world.time - last_process)
if(timeleft <= 0)
SSobj.processing.Remove(src)
STOP_PROCESSING(SSobj, src)
qdel(src)
+2 -2
View File
@@ -78,7 +78,7 @@
/obj/effect/spider/eggcluster/New()
pixel_x = rand(3,-3)
pixel_y = rand(3,-3)
SSobj.processing |= src
START_PROCESSING(SSobj, src)
/obj/effect/spider/eggcluster/process()
amount_grown += rand(0,2)
@@ -112,7 +112,7 @@
/obj/effect/spider/spiderling/New()
pixel_x = rand(6,-6)
pixel_y = rand(6,-6)
SSobj.processing |= src
START_PROCESSING(SSobj, src)
/obj/effect/spider/spiderling/Bump(atom/user)
if(istype(user, /obj/structure/table))