Hydroponics

Glowshrooms now stop growing after a while. They're also much less laggy.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1518 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
uporotiy
2011-05-02 17:24:40 +00:00
parent 1fd070c908
commit f8c3231552
2 changed files with 29 additions and 15 deletions
+5
View File
@@ -784,6 +784,11 @@
user << "You plant the glowshroom."
/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/glowshroom/Del()
if(istype(loc,/mob))
loc.sd_SetLuminosity(loc.luminosity - potency/10)
..()
/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/glowshroom/pickup(mob/user)
src.sd_SetLuminosity(0)
user.sd_SetLuminosity(user.luminosity + potency/10)