mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
## 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 /🆑
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
// Herbs
|
|
/obj/item/seeds/herbs
|
|
name = "herb seed pack"
|
|
desc = "These seeds grow to produce an assortment of herbs and seasonings."
|
|
icon_state = "seed-herbs"
|
|
species = "herbs"
|
|
plantname = "Herbs"
|
|
product = /obj/item/food/grown/herbs
|
|
growthstages = 2
|
|
yield = 5
|
|
potency = 20
|
|
growing_icon = 'icons/obj/service/hydroponics/growing.dmi'
|
|
icon_grow = "herbs-grow"
|
|
icon_dead = "herbs-dead"
|
|
genes = list(/datum/plant_gene/trait/repeated_harvest)
|
|
reagents_add = list(/datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1)
|
|
|
|
/obj/item/food/grown/herbs
|
|
seed = /obj/item/seeds/herbs
|
|
name = "bundle of herbs"
|
|
desc = "A bundle of various herbs. Somehow, you're always able to pick what you need out."
|
|
icon_state = "herbs"
|
|
foodtypes = VEGETABLES
|
|
tastes = list("nondescript herbs" = 1)
|
|
distill_reagent = /datum/reagent/consumable/ethanol/fernet
|
|
|
|
/obj/item/food/grown/herbs/grind_results()
|
|
return list(/datum/reagent/consumable/nutriment = 0)
|
|
|
|
/obj/item/food/grown/herbs/juice_typepath()
|
|
return /datum/reagent/consumable/nutriment
|