Kills off Object and Fast Object Processes

This commit is contained in:
Fox McCloud
2019-04-23 23:53:40 -04:00
parent 1544756ce6
commit 0034e851a1
126 changed files with 350 additions and 396 deletions
+2 -2
View File
@@ -7,10 +7,10 @@
/obj/item/holder/New()
..()
processing_objects.Add(src)
START_PROCESSING(SSobj, src)
/obj/item/holder/Destroy()
processing_objects.Remove(src)
STOP_PROCESSING(SSobj, src)
return ..()
/obj/item/holder/process()
@@ -107,7 +107,7 @@
/obj/item/organ/internal/brain/necrotize(update_sprite = TRUE) //Brain also has special handling for when it necrotizes
damage = max_damage
status |= ORGAN_DEAD
processing_objects -= src
STOP_PROCESSING(SSobj, src)
if(dead_icon && !is_robotic())
icon_state = dead_icon
if(owner && vital)
@@ -299,7 +299,7 @@ var/global/chicken_count = 0
E.pixel_y = rand(-6,6)
if(eggsFertile)
if(chicken_count < MAX_CHICKENS && prob(25))
processing_objects.Add(E)
START_PROCESSING(SSobj, E)
/obj/item/reagent_containers/food/snacks/egg/var/amount_grown = 0
/obj/item/reagent_containers/food/snacks/egg/process()
@@ -308,10 +308,10 @@ var/global/chicken_count = 0
if(amount_grown >= 100)
visible_message("[src] hatches with a quiet cracking sound.")
new /mob/living/simple_animal/chick(get_turf(src))
processing_objects.Remove(src)
STOP_PROCESSING(SSobj, src)
qdel(src)
else
processing_objects.Remove(src)
STOP_PROCESSING(SSobj, src)
/mob/living/simple_animal/pig