Skip to content

Commit

Permalink
Fixes glowshroom runtimes. (#52120)
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskog committed Jul 11, 2020
1 parent 80cdb7c commit 9ab3dd5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions code/game/objects/effects/glowshroom.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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++
Expand Down

0 comments on commit 9ab3dd5

Please sign in to comment.