diff --git a/code/modules/hydroponics/grafts.dm b/code/modules/hydroponics/grafts.dm index e1c9a6677d4..e5e4ddd3e0a 100644 --- a/code/modules/hydroponics/grafts.dm +++ b/code/modules/hydroponics/grafts.dm @@ -11,7 +11,7 @@ attack_verb_continuous = list("plants", "vegitizes", "crops", "reaps", "farms") attack_verb_simple = list("plant", "vegitize", "crop", "reap", "farm") ///The stored trait taken from the parent plant. Defaults to perenial growth. - var/datum/plant_gene/trait/stored_trait + var/datum/plant_gene/stored_trait ///Determines the appearance of the graft. Rudimentary right now so it just picks randomly. var/graft_appearance ///Seed that the graft was taken from, used for applying parent stats. Can be unexpectedly nulled by the parent plant getting deleted. diff --git a/code/modules/hydroponics/seeds.dm b/code/modules/hydroponics/seeds.dm index 4f333d171d8..fa8c658656a 100644 --- a/code/modules/hydroponics/seeds.dm +++ b/code/modules/hydroponics/seeds.dm @@ -634,7 +634,7 @@ * - [snip][/obj/item/graft]: The graft being used applied to this plant. */ /obj/item/seeds/proc/apply_graft(obj/item/graft/snip) - var/datum/plant_gene/trait/new_trait = snip.stored_trait + var/datum/plant_gene/new_trait = snip.stored_trait if(new_trait?.can_add(src)) genes += new_trait.Copy() @@ -646,4 +646,7 @@ src.weed_chance = round(clamp(max(src.weed_chance, (src.weed_chance+(2/3)*(snip.weed_chance-src.weed_chance) )),0,100)) src.yield = round(clamp(max(src.yield, (src.yield +(2/3)*(snip.yield -src.yield) )),0,10 )) + // Add in any reagents, too. + reagents_from_genes() + return TRUE