mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 19:44:58 +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 /🆑
131 lines
4.8 KiB
Plaintext
131 lines
4.8 KiB
Plaintext
// Tomato
|
|
/obj/item/seeds/tomato
|
|
name = "tomato seed pack"
|
|
desc = "These seeds grow into tomato plants."
|
|
icon_state = "seed-tomato"
|
|
species = "tomato"
|
|
plantname = "Tomato Plants"
|
|
product = /obj/item/food/grown/tomato
|
|
maturation = 8
|
|
instability = 25
|
|
growing_icon = 'icons/obj/service/hydroponics/growing_fruits.dmi'
|
|
icon_grow = "tomato-grow"
|
|
icon_dead = "tomato-dead"
|
|
genes = list(/datum/plant_gene/trait/squash, /datum/plant_gene/trait/repeated_harvest)
|
|
mutatelist = list(/obj/item/seeds/tomato/blue, /obj/item/seeds/tomato/blood, /obj/item/seeds/tomato/killer)
|
|
reagents_add = list(/datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1)
|
|
graft_gene = /datum/plant_gene/trait/squash
|
|
|
|
/obj/item/food/grown/tomato
|
|
seed = /obj/item/seeds/tomato
|
|
name = "tomato"
|
|
desc = "I say to-mah-to, you say tom-mae-to."
|
|
icon_state = "tomato"
|
|
splat_type = /obj/effect/decal/cleanable/food/tomato_smudge
|
|
foodtypes = VEGETABLES
|
|
distill_reagent = /datum/reagent/consumable/enzyme
|
|
|
|
/obj/item/food/grown/tomato/grind_results()
|
|
return list(/datum/reagent/consumable/ketchup = 0)
|
|
|
|
/obj/item/food/grown/tomato/juice_typepath()
|
|
return /datum/reagent/consumable/tomatojuice
|
|
|
|
// Blood Tomato
|
|
/obj/item/seeds/tomato/blood
|
|
name = "blood-tomato seed pack"
|
|
desc = "These seeds grow into blood-tomato plants."
|
|
icon_state = "seed-bloodtomato"
|
|
species = "bloodtomato"
|
|
plantname = "Blood-Tomato Plants"
|
|
product = /obj/item/food/grown/tomato/blood
|
|
mutatelist = null
|
|
reagents_add = list(/datum/reagent/blood = 0.2, /datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1)
|
|
rarity = PLANT_MODERATELY_RARE
|
|
|
|
/obj/item/food/grown/tomato/blood
|
|
seed = /obj/item/seeds/tomato/blood
|
|
name = "blood-tomato"
|
|
desc = "So bloody...so...very...bloody....AHHHH!!!!"
|
|
icon_state = "bloodtomato"
|
|
bite_consumption_mod = 3
|
|
splat_type = /obj/effect/gibspawner/generic
|
|
foodtypes = VEGETABLES | GORE
|
|
distill_reagent = /datum/reagent/consumable/ethanol/bloody_mary
|
|
|
|
/obj/item/food/grown/tomato/blood/grind_results()
|
|
return list(/datum/reagent/consumable/ketchup = 0, /datum/reagent/blood = 0)
|
|
|
|
// Blue Tomato
|
|
/obj/item/seeds/tomato/blue
|
|
name = "blue-tomato seed pack"
|
|
desc = "These seeds grow into blue-tomato plants."
|
|
icon_state = "seed-bluetomato"
|
|
species = "bluetomato"
|
|
plantname = "Blue-Tomato Plants"
|
|
product = /obj/item/food/grown/tomato/blue
|
|
yield = 2
|
|
icon_grow = "bluetomato-grow"
|
|
mutatelist = list(/obj/item/seeds/tomato/blue/bluespace)
|
|
genes = list(/datum/plant_gene/trait/slip, /datum/plant_gene/trait/repeated_harvest)
|
|
reagents_add = list(/datum/reagent/lube = 0.2, /datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1)
|
|
rarity = PLANT_MODERATELY_RARE
|
|
graft_gene = /datum/plant_gene/trait/slip
|
|
|
|
/obj/item/food/grown/tomato/blue
|
|
seed = /obj/item/seeds/tomato/blue
|
|
name = "blue-tomato"
|
|
desc = "I say blue-mah-to, you say blue-mae-to."
|
|
icon_state = "bluetomato"
|
|
bite_consumption_mod = 2
|
|
splat_type = /obj/effect/decal/cleanable/blood/oil
|
|
distill_reagent = /datum/reagent/consumable/laughter
|
|
|
|
// Bluespace Tomato
|
|
/obj/item/seeds/tomato/blue/bluespace
|
|
name = "bluespace tomato seed pack"
|
|
desc = "These seeds grow into bluespace tomato plants."
|
|
icon_state = "seed-bluespacetomato"
|
|
species = "bluespacetomato"
|
|
plantname = "Bluespace Tomato Plants"
|
|
product = /obj/item/food/grown/tomato/blue/bluespace
|
|
yield = 2
|
|
mutatelist = null
|
|
genes = list(/datum/plant_gene/trait/squash, /datum/plant_gene/trait/slip, /datum/plant_gene/trait/teleport, /datum/plant_gene/trait/repeated_harvest, /datum/plant_gene/trait/backfire/bluespace)
|
|
reagents_add = list(/datum/reagent/lube = 0.2, /datum/reagent/bluespace = 0.2, /datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1)
|
|
rarity = 50
|
|
graft_gene = /datum/plant_gene/trait/teleport
|
|
|
|
/obj/item/food/grown/tomato/blue/bluespace
|
|
seed = /obj/item/seeds/tomato/blue/bluespace
|
|
name = "\improper bluespace tomato"
|
|
desc = "So lubricated, you might slip through space-time."
|
|
icon_state = "bluespacetomato"
|
|
bite_consumption_mod = 3
|
|
distill_reagent = null
|
|
wine_power = 80
|
|
|
|
// Killer Tomato
|
|
/obj/item/seeds/tomato/killer
|
|
name = "killer-tomato seed pack"
|
|
desc = "These seeds grow into killer-tomato plants."
|
|
icon_state = "seed-killertomato"
|
|
species = "killertomato"
|
|
plantname = "Killer-Tomato Plants"
|
|
product = /obj/item/food/grown/tomato/killer
|
|
yield = 2
|
|
genes = list(/datum/plant_gene/trait/mob_transformation/tomato)
|
|
growthstages = 2
|
|
icon_grow = "killertomato-grow"
|
|
icon_harvest = "killertomato-harvest"
|
|
icon_dead = "killertomato-dead"
|
|
mutatelist = null
|
|
rarity = 30
|
|
|
|
/obj/item/food/grown/tomato/killer
|
|
seed = /obj/item/seeds/tomato/killer
|
|
name = "\improper killer-tomato"
|
|
desc = "I say to-mah-to, you say tom-mae-to... OH GOD IT'S EATING MY LEGS!!"
|
|
icon_state = "killertomato"
|
|
distill_reagent = /datum/reagent/consumable/ethanol/demonsblood
|