Files
SyncIt21 468b351b86 Axes grind & juice vars into procs (#94592)
## About The Pull Request
Inspired by #94233. `grind_results`(list) & `juice_typepath`(typepath)
are only used when grinding & juicing after which the atom is deleted.
This means if that object is not processed these vars occupy memory &
don't do anything.

Now these values are only generated on demand by calling their
respective procs. Considering how these vars are on the obj level the
memory savings are quite significant

## Changelog
🆑
refactor: grinding & juicing have been refactored to occupy low memory.
Report bugs on github
code: improved grinding & juicing code
/🆑
2025-12-25 20:40:35 +01:00

51 lines
1.6 KiB
Plaintext

// Plum
/obj/item/seeds/plum
name = "plum seed pack"
desc = "These seeds grow into plum trees."
icon_state = "seed-plum"
species = "plum"
plantname = "Plum Tree"
product = /obj/item/food/grown/plum
lifespan = 55
endurance = 35
yield = 5
growing_icon = 'icons/obj/service/hydroponics/growing_fruits.dmi'
icon_grow = "plum-grow"
icon_dead = "plum-dead"
genes = list(/datum/plant_gene/trait/repeated_harvest, /datum/plant_gene/trait/one_bite)
mutatelist = list(/obj/item/seeds/plum/plumb)
reagents_add = list(/datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1, /datum/reagent/impurity/rosenol = 0.04)
/obj/item/food/grown/plum
seed = /obj/item/seeds/plum
name = "plum"
desc = "A poet's favorite fruit. Noice."
icon_state = "plum"
foodtypes = FRUIT
tastes = list("plum" = 1)
distill_reagent = /datum/reagent/consumable/ethanol/plumwine
/obj/item/food/grown/plum/juice_typepath()
return /datum/reagent/consumable/plumjuice
// Plumb
/obj/item/seeds/plum/plumb
name = "plumb seed pack"
desc = "These seeds grow into plumb trees."
icon_state = "seed-plumb"
species = "plumb"
plantname = "Plumb Tree"
product = /obj/item/food/grown/plum/plumb
genes = list(/datum/plant_gene/trait/repeated_harvest)
mutatelist = null
reagents_add = list(/datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1, /datum/reagent/lead = 0.04)
rarity = 30
/obj/item/food/grown/plum/plumb
seed = /obj/item/seeds/plum/plumb
name = "plumb"
desc = "It feels very heavy."
icon_state = "plumb"
distill_reagent = null
wine_power = 50