Fixes fruits missing their stems

This commit is contained in:
atermonera
2022-05-01 09:48:38 -08:00
parent 18c044e119
commit acbd424bae

View File

@@ -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]"])
add_overlay(fruit_icon_cache["slice-[rind_colour]"])