From edf84b49de8e658d8f99fc4a8f4a94d013ef1f31 Mon Sep 17 00:00:00 2001 From: Xhuis Date: Sun, 11 Sep 2016 11:14:59 -0400 Subject: [PATCH] Fixed an exploit allowing instant plant growth --- code/modules/hydroponics/hydroponics.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/hydroponics/hydroponics.dm b/code/modules/hydroponics/hydroponics.dm index 0fcfa4992c1..afcf5b0e83d 100644 --- a/code/modules/hydroponics/hydroponics.dm +++ b/code/modules/hydroponics/hydroponics.dm @@ -857,6 +857,10 @@ user.visible_message("[user] digs out the plants in [src]!", "You dig out all of [src]'s plants!") playsound(src, 'sound/effects/shovel_dig.ogg', 50, 1) if(myseed) //Could be that they're just using it as a de-weeder + age = 0 + health = 0 + if(harvest) + harvest = FALSE //To make sure they can't just put in another seed and insta-harvest it qdel(myseed) myseed = null weedlevel = 0 //Has a side effect of cleaning up those nasty weeds