Grown inedibles now properly take seed stats into account
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
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.
|
||||
var/tastes = list("indescribable" = 1) //Stops runtimes. Grown are un-eatable anyways so if you do then its a bug
|
||||
|
||||
/obj/item/grown/Initialize(mapload, newloc, obj/item/seeds/new_seed)
|
||||
/obj/item/grown/Initialize(mapload, obj/item/seeds/new_seed)
|
||||
. = ..()
|
||||
create_reagents(50, NONE, HARVEST_REAGENTS_VALUE)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
if(seed)
|
||||
for(var/datum/plant_gene/trait/T in seed.genes)
|
||||
T.on_new(src, newloc)
|
||||
T.on_new(src, loc)
|
||||
|
||||
if(istype(src, seed.product)) // no adding reagents if it is just a trash item
|
||||
seed.prepare_result(src)
|
||||
|
||||
Reference in New Issue
Block a user