mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 09:35:30 +01:00
468b351b86
## 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 /🆑
29 lines
978 B
Plaintext
29 lines
978 B
Plaintext
// Olive
|
|
/obj/item/seeds/olive
|
|
name = "olive seed pack"
|
|
desc = "These seeds grow into olive trees."
|
|
icon_state = "seed-olive"
|
|
species = "olive"
|
|
plantname = "Olive Tree"
|
|
product = /obj/item/food/grown/olive
|
|
lifespan = 150
|
|
endurance = 35
|
|
yield = 5
|
|
maturation = 10
|
|
growing_icon = 'icons/obj/service/hydroponics/growing_fruits.dmi'
|
|
icon_grow = "olive-grow"
|
|
icon_dead = "olive-dead"
|
|
genes = list(/datum/plant_gene/trait/repeated_harvest, /datum/plant_gene/trait/one_bite)
|
|
reagents_add = list(/datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1)
|
|
|
|
/obj/item/food/grown/olive
|
|
seed = /obj/item/seeds/olive
|
|
name = "olive"
|
|
desc = "A small cylindrical salty fruit closely related to mangoes. Can be ground into a paste and mixed with water to make quality oil."
|
|
icon_state = "olive"
|
|
foodtypes = FRUIT
|
|
tastes = list("olive" = 1)
|
|
|
|
/obj/item/food/grown/olive/grind_results()
|
|
return list(/datum/reagent/consumable/olivepaste = 0)
|