mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +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
932 B
Plaintext
29 lines
932 B
Plaintext
// CUCUMBERS YEAH
|
|
/obj/item/seeds/cucumber
|
|
name = "cucumber seed pack"
|
|
desc = "These seeds grow into cucumber plants."
|
|
icon_state = "seed-cucumber"
|
|
species = "cucumber"
|
|
plantname = "Cucumber Plant"
|
|
product = /obj/item/food/grown/cucumber
|
|
maturation = 10
|
|
production = 1
|
|
yield = 5
|
|
instability = 15
|
|
growing_icon = 'icons/obj/service/hydroponics/growing_vegetables.dmi'
|
|
icon_grow = "cucumber-grow"
|
|
icon_dead = "cucumber-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/cucumber
|
|
seed = /obj/item/seeds/cucumber
|
|
name = "cucumber"
|
|
desc = "Oblong and green, with pimples, the standard of salads."
|
|
icon_state = "cucumber"
|
|
foodtypes = VEGETABLES
|
|
tastes = list("cucumber" = 1)
|
|
|
|
/obj/item/food/grown/cucumber/juice_typepath()
|
|
return /datum/reagent/consumable/cucumberjuice
|