Skip to content

Commit

Permalink
[FIX]Plant DNA manipulator now drops seed and disks on destruction (P…
Browse files Browse the repository at this point in the history
…aradiseSS13#26156)

* The Plant DNA manipulator now drops disks and seed upon destruction, rather than deleting them

* Update code/modules/hydroponics/gene_modder.dm

Co-authored-by: Ryan <[email protected]>
Signed-off-by: Migratingcocofruit <[email protected]>

---------

Signed-off-by: Migratingcocofruit <[email protected]>
Co-authored-by: Ryan <[email protected]>
  • Loading branch information
Migratingcocofruit and Sirryan2002 authored Jul 12, 2024
1 parent 4a84520 commit 8c7c9d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/modules/hydroponics/gene_modder.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@
RefreshParts()

/obj/machinery/plantgenes/Destroy()
for(var/atom/movable/A in contents)
A.forceMove(loc)
seed = null
disk = null
core_genes.Cut()
reagent_genes.Cut()
trait_genes.Cut()
target = null
QDEL_NULL(seed)
QDEL_NULL(disk)
return ..()

/obj/machinery/plantgenes/RefreshParts() // Comments represent the max you can set per tier, respectively. seeds.dm [219] clamps these for us but we don't want to mislead the viewer.
Expand Down

0 comments on commit 8c7c9d3

Please sign in to comment.