Fixes glowshroom runtimes. (#52120)

This commit is contained in:
skoglol
2020-07-12 03:21:50 +10:00
committed by GitHub
parent 80cdb7c2a9
commit 9ab3dd5018
+2 -5
View File
@@ -45,11 +45,6 @@
. = ..()
. += "This is a [generation]\th generation [name]!"
/obj/structure/glowshroom/Destroy()
if(myseed)
QDEL_NULL(myseed)
return ..()
/**
* Creates a new glowshroom structure.
*
@@ -142,6 +137,8 @@
continue
Decay(TRUE, 2) // Decay before spawning new mushrooms to reduce their endurance
if(QDELETED(src)) //Decay can end us
return
var/obj/structure/glowshroom/child = new type(newLoc, myseed, TRUE, TRUE)
child.generation = generation + 1
shrooms_planted++