From acbd424bae1ac7b1b67cd03f4c1e780a89579d4d Mon Sep 17 00:00:00 2001 From: atermonera Date: Sun, 1 May 2022 09:48:38 -0800 Subject: [PATCH] Fixes fruits missing their stems --- code/modules/hydroponics/grown.dm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm index 489073e17b..f5f251d305 100644 --- a/code/modules/hydroponics/grown.dm +++ b/code/modules/hydroponics/grown.dm @@ -142,7 +142,7 @@ if("[seed.get_trait(TRAIT_PRODUCT_ICON)]-leaf" in cached_icon_states('icons/obj/hydroponics_products.dmi')) var/image/fruit_leaves = image('icons/obj/hydroponics_products.dmi',"[seed.get_trait(TRAIT_PRODUCT_ICON)]-leaf") fruit_leaves.color = "[seed.get_trait(TRAIT_PLANT_COLOUR)]" - add_overlay(fruit_leaves) + plant_icon.add_overlay(fruit_leaves) plant_controller.plant_icon_cache[icon_key] = plant_icon add_overlay(plant_icon) @@ -189,7 +189,7 @@ pocell.charge = pocell.maxcharge qdel(src) return - + if(W.sharp) if(seed.kitchen_tag == "pumpkin") // Ugggh these checks are awful. @@ -217,7 +217,7 @@ to_chat(user, "You add the newly-formed wood to the stack. It now contains [NG.amount] planks.") qdel(src) return - + if(seed.kitchen_tag == "sunflower") new /obj/item/reagent_containers/food/snacks/rawsunflower(get_turf(src)) to_chat(user, SPAN_NOTICE("You remove the seeds from the flower, slightly damaging them.")) @@ -229,25 +229,25 @@ new /obj/item/reagent_containers/food/snacks/rawsticks(get_turf(src)) qdel(src) return - + if(!isnull(seed.chems["carrotjuice"])) to_chat(user, "You slice \the [src] into sticks.") new /obj/item/reagent_containers/food/snacks/carrotfries(get_turf(src)) qdel(src) return - + if(!isnull(seed.chems["pineapplejuice"])) to_chat(user, "You slice \the [src] into rings.") new /obj/item/reagent_containers/food/snacks/pineapple_ring(get_turf(src)) qdel(src) return - + if(!isnull(seed.chems["soymilk"])) to_chat(user, "You roughly chop up \the [src].") new /obj/item/reagent_containers/food/snacks/soydope(get_turf(src)) qdel(src) return - + if(seed.get_trait(TRAIT_FLESH_COLOUR)) to_chat(user, "You slice up \the [src].") var/slices = rand(3,5) @@ -388,4 +388,4 @@ var/global/list/fruit_icon_cache = list() var/image/I = image(icon,"fruit_slice") I.color = flesh_colour fruit_icon_cache["slice-[rind_colour]"] = I - add_overlay(fruit_icon_cache["slice-[rind_colour]"]) \ No newline at end of file + add_overlay(fruit_icon_cache["slice-[rind_colour]"])