d447acdc6e
I had some time free, and noticed how awful the reagent grinder code was - it used huge static lists containing types and their associated reagents from grinding. This is now split into two new vars on /obj/item - var/list/grind_results and var/list/juice_results, as well as two new helper procs, on_grind() and on_juice() to allow those to change based on conditions like plant potency. Such checks and the like have been moved to that. If any of these procs return -1, the operation is canceled. I also fixed some of the recipes that didn't work. The reagent IDs for them didn't exist, leading me to believe that they weren't tested. I corrected that! (I've tested every single recipe in this PR, with the exception of a few juicing-related ones.)
52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
// Soybeans
|
|
/obj/item/seeds/soya
|
|
name = "pack of soybean seeds"
|
|
desc = "These seeds grow into soybean plants."
|
|
icon_state = "seed-soybean"
|
|
species = "soybean"
|
|
plantname = "Soybean Plants"
|
|
product = /obj/item/reagent_containers/food/snacks/grown/soybeans
|
|
maturation = 4
|
|
production = 4
|
|
potency = 15
|
|
growthstages = 4
|
|
growing_icon = 'icons/obj/hydroponics/growing_vegetables.dmi'
|
|
icon_grow = "soybean-grow"
|
|
icon_dead = "soybean-dead"
|
|
genes = list(/datum/plant_gene/trait/repeated_harvest)
|
|
mutatelist = list(/obj/item/seeds/soya/koi)
|
|
reagents_add = list("vitamin" = 0.04, "nutriment" = 0.05, "cooking_oil" = 0.03) //Vegetable oil!
|
|
|
|
/obj/item/reagent_containers/food/snacks/grown/soybeans
|
|
seed = /obj/item/seeds/soya
|
|
name = "soybeans"
|
|
desc = "It's pretty bland, but oh the possibilities..."
|
|
gender = PLURAL
|
|
icon_state = "soybeans"
|
|
filling_color = "#F0E68C"
|
|
bitesize_mod = 2
|
|
foodtype = VEGETABLES
|
|
grind_results = list("soymilk" = 0)
|
|
|
|
// Koibean
|
|
/obj/item/seeds/soya/koi
|
|
name = "pack of koibean seeds"
|
|
desc = "These seeds grow into koibean plants."
|
|
icon_state = "seed-koibean"
|
|
species = "koibean"
|
|
plantname = "Koibean Plants"
|
|
product = /obj/item/reagent_containers/food/snacks/grown/koibeans
|
|
potency = 10
|
|
mutatelist = list()
|
|
reagents_add = list("carpotoxin" = 0.1, "vitamin" = 0.04, "nutriment" = 0.05)
|
|
rarity = 20
|
|
|
|
/obj/item/reagent_containers/food/snacks/grown/koibeans
|
|
seed = /obj/item/seeds/soya/koi
|
|
name = "koibean"
|
|
desc = "Something about these seems fishy."
|
|
icon_state = "koibeans"
|
|
filling_color = "#F0E68C"
|
|
bitesize_mod = 2
|
|
foodtype = VEGETABLES
|