Fixes grown runtime spam

This commit is contained in:
AnturK
2017-10-01 13:25:09 +02:00
parent e997bc48c0
commit ee49ba470c
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -17,9 +17,9 @@
resistance_flags = FLAMMABLE
origin_tech = "biotech=1"
/obj/item/reagent_containers/food/snacks/grown/New(newloc, var/obj/item/seeds/new_seed = null)
tastes = list(name = 1) // apples taste of apple, silly.
..()
/obj/item/reagent_containers/food/snacks/grown/Initialize (newloc, var/obj/item/seeds/new_seed)
. = ..()
tastes = list("[name]" = 1) // apples taste of apple, silly.
if(new_seed)
seed = new_seed.Copy()
else if(ispath(seed))
+2 -2
View File
@@ -8,8 +8,8 @@
resistance_flags = FLAMMABLE
var/obj/item/seeds/seed = null // type path, gets converted to item on New(). It's safe to assume it's always a seed item.
/obj/item/grown/New(newloc, var/obj/item/seeds/new_seed = null)
..()
/obj/item/grown/Initialize(newloc, var/obj/item/seeds/new_seed)
. = ..()
create_reagents(50)
if(new_seed)