Skip to content

Commit

Permalink
Fixes glowshroom runtimes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskog committed Jul 9, 2020
1 parent 4a9d8dd commit 1bebc50
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 1bebc50

Please sign in to comment.