mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 18:45:22 +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 /🆑
28 lines
860 B
Plaintext
28 lines
860 B
Plaintext
// Peanuts!
|
|
/obj/item/seeds/peanut
|
|
name = "peanut seed pack"
|
|
desc = "These seeds grow into peanut plants."
|
|
icon_state = "seed-peanut"
|
|
species = "peanut"
|
|
plantname = "Peanut Plant"
|
|
product = /obj/item/food/grown/peanut
|
|
lifespan = 55
|
|
endurance = 35
|
|
yield = 5
|
|
growing_icon = 'icons/obj/service/hydroponics/growing.dmi'
|
|
icon_grow = "peanut-grow"
|
|
icon_dead = "peanut-dead"
|
|
genes = list(/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/peanut
|
|
seed = /obj/item/seeds/peanut
|
|
name = "peanut"
|
|
desc = "A tasty pair of groundnuts concealed in a tough shell."
|
|
icon_state = "peanut"
|
|
foodtypes = NUTS
|
|
tastes = list("peanuts" = 1)
|
|
|
|
/obj/item/food/grown/peanut/grind_results()
|
|
return list(/datum/reagent/consumable/peanut_butter = 0)
|