Merge pull request #35606 from coiax/hydroponic-foods-taste
Apples now taste like apples
This commit is contained in:
committed by
CitadelStationBot
parent
1cda9ef2b4
commit
7fd53748f0
@@ -19,7 +19,9 @@
|
|||||||
|
|
||||||
/obj/item/reagent_containers/food/snacks/grown/Initialize(mapload, obj/item/seeds/new_seed)
|
/obj/item/reagent_containers/food/snacks/grown/Initialize(mapload, obj/item/seeds/new_seed)
|
||||||
. = ..()
|
. = ..()
|
||||||
tastes = list("[name]" = 1) // apples taste of apple, silly.
|
if(!tastes)
|
||||||
|
tastes = list("[name]" = 1)
|
||||||
|
|
||||||
if(new_seed)
|
if(new_seed)
|
||||||
seed = new_seed.Copy()
|
seed = new_seed.Copy()
|
||||||
else if(ispath(seed))
|
else if(ispath(seed))
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
filling_color = "#008000"
|
filling_color = "#008000"
|
||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = VEGETABLES
|
foodtype = VEGETABLES
|
||||||
|
tastes = list("ambrosia" = 1)
|
||||||
|
|
||||||
// Ambrosia Vulgaris
|
// Ambrosia Vulgaris
|
||||||
/obj/item/seeds/ambrosia
|
/obj/item/seeds/ambrosia
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
bitesize = 100 // Always eat the apple in one bite
|
bitesize = 100 // Always eat the apple in one bite
|
||||||
foodtype = FRUIT
|
foodtype = FRUIT
|
||||||
juice_results = list("applejuice" = 0)
|
juice_results = list("applejuice" = 0)
|
||||||
|
tastes = list("apple" = 1)
|
||||||
|
|
||||||
// Posioned Apple
|
// Posioned Apple
|
||||||
/obj/item/seeds/apple/poisoned
|
/obj/item/seeds/apple/poisoned
|
||||||
|
|||||||
@@ -108,6 +108,7 @@
|
|||||||
item_state = "bluespace_peel"
|
item_state = "bluespace_peel"
|
||||||
trash = /obj/item/grown/bananapeel/bluespace
|
trash = /obj/item/grown/bananapeel/bluespace
|
||||||
filling_color = "#0000FF"
|
filling_color = "#0000FF"
|
||||||
|
tastes = list("banana" = 1)
|
||||||
|
|
||||||
/obj/item/grown/bananapeel/bluespace
|
/obj/item/grown/bananapeel/bluespace
|
||||||
seed = /obj/item/seeds/banana/bluespace
|
seed = /obj/item/seeds/banana/bluespace
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = VEGETABLES
|
foodtype = VEGETABLES
|
||||||
grind_results = list("soymilk" = 0)
|
grind_results = list("soymilk" = 0)
|
||||||
|
tastes = list("soy" = 1)
|
||||||
|
|
||||||
// Koibean
|
// Koibean
|
||||||
/obj/item/seeds/soya/koi
|
/obj/item/seeds/soya/koi
|
||||||
@@ -49,3 +50,4 @@
|
|||||||
filling_color = "#F0E68C"
|
filling_color = "#F0E68C"
|
||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = VEGETABLES
|
foodtype = VEGETABLES
|
||||||
|
tastes = list("koi" = 1)
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = FRUIT
|
foodtype = FRUIT
|
||||||
juice_results = list("berryjuice" = 0)
|
juice_results = list("berryjuice" = 0)
|
||||||
|
tastes = list("berry" = 1)
|
||||||
|
|
||||||
// Poison Berries
|
// Poison Berries
|
||||||
/obj/item/seeds/berry/poison
|
/obj/item/seeds/berry/poison
|
||||||
@@ -43,11 +44,12 @@
|
|||||||
/obj/item/reagent_containers/food/snacks/grown/berries/poison
|
/obj/item/reagent_containers/food/snacks/grown/berries/poison
|
||||||
seed = /obj/item/seeds/berry/poison
|
seed = /obj/item/seeds/berry/poison
|
||||||
name = "bunch of poison-berries"
|
name = "bunch of poison-berries"
|
||||||
desc = "Taste so good, you could die!"
|
desc = "Taste so good, you might die!"
|
||||||
icon_state = "poisonberrypile"
|
icon_state = "poisonberrypile"
|
||||||
filling_color = "#C71585"
|
filling_color = "#C71585"
|
||||||
foodtype = FRUIT | TOXIC
|
foodtype = FRUIT | TOXIC
|
||||||
juice_results = list("poisonberryjuice" = 0)
|
juice_results = list("poisonberryjuice" = 0)
|
||||||
|
tastes = list("poison-berry" = 1)
|
||||||
|
|
||||||
// Death Berries
|
// Death Berries
|
||||||
/obj/item/seeds/berry/death
|
/obj/item/seeds/berry/death
|
||||||
@@ -66,10 +68,11 @@
|
|||||||
/obj/item/reagent_containers/food/snacks/grown/berries/death
|
/obj/item/reagent_containers/food/snacks/grown/berries/death
|
||||||
seed = /obj/item/seeds/berry/death
|
seed = /obj/item/seeds/berry/death
|
||||||
name = "bunch of death-berries"
|
name = "bunch of death-berries"
|
||||||
desc = "Taste so good, you could die!"
|
desc = "Taste so good, you will die!"
|
||||||
icon_state = "deathberrypile"
|
icon_state = "deathberrypile"
|
||||||
filling_color = "#708090"
|
filling_color = "#708090"
|
||||||
foodtype = FRUIT | TOXIC
|
foodtype = FRUIT | TOXIC
|
||||||
|
tastes = list("death-berry" = 1)
|
||||||
|
|
||||||
// Glow Berries
|
// Glow Berries
|
||||||
/obj/item/seeds/berry/glow
|
/obj/item/seeds/berry/glow
|
||||||
@@ -93,6 +96,7 @@
|
|||||||
icon_state = "glowberrypile"
|
icon_state = "glowberrypile"
|
||||||
filling_color = "#7CFC00"
|
filling_color = "#7CFC00"
|
||||||
foodtype = FRUIT
|
foodtype = FRUIT
|
||||||
|
tastes = list("glow-berry" = 1)
|
||||||
|
|
||||||
// Cherries
|
// Cherries
|
||||||
/obj/item/seeds/cherry
|
/obj/item/seeds/cherry
|
||||||
@@ -124,6 +128,7 @@
|
|||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = FRUIT
|
foodtype = FRUIT
|
||||||
grind_results = list("cherryjelly" = 0)
|
grind_results = list("cherryjelly" = 0)
|
||||||
|
tastes = list("cherry" = 1)
|
||||||
|
|
||||||
// Blue Cherries
|
// Blue Cherries
|
||||||
/obj/item/seeds/cherry/blue
|
/obj/item/seeds/cherry/blue
|
||||||
@@ -146,6 +151,7 @@
|
|||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = FRUIT
|
foodtype = FRUIT
|
||||||
grind_results = list("bluecherryjelly" = 0)
|
grind_results = list("bluecherryjelly" = 0)
|
||||||
|
tastes = list("blue cherry" = 1)
|
||||||
|
|
||||||
// Grapes
|
// Grapes
|
||||||
/obj/item/seeds/grape
|
/obj/item/seeds/grape
|
||||||
@@ -178,6 +184,7 @@
|
|||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = FRUIT
|
foodtype = FRUIT
|
||||||
juice_results = list("grapejuice" = 0)
|
juice_results = list("grapejuice" = 0)
|
||||||
|
tastes = list("grape" = 1)
|
||||||
|
|
||||||
// Green Grapes
|
// Green Grapes
|
||||||
/obj/item/seeds/grape/green
|
/obj/item/seeds/grape/green
|
||||||
@@ -196,3 +203,4 @@
|
|||||||
name = "bunch of green grapes"
|
name = "bunch of green grapes"
|
||||||
icon_state = "greengrapes"
|
icon_state = "greengrapes"
|
||||||
filling_color = "#7FFF00"
|
filling_color = "#7FFF00"
|
||||||
|
tastes = list("green grape" = 1)
|
||||||
|
|||||||
@@ -91,6 +91,7 @@
|
|||||||
filling_color = "#00FF00"
|
filling_color = "#00FF00"
|
||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = VEGETABLES //i dont really know what else weed could be to be honest
|
foodtype = VEGETABLES //i dont really know what else weed could be to be honest
|
||||||
|
tastes = list("cannabis" = 1)
|
||||||
|
|
||||||
|
|
||||||
/obj/item/reagent_containers/food/snacks/grown/cannabis/rainbow
|
/obj/item/reagent_containers/food/snacks/grown/cannabis/rainbow
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = GRAIN
|
foodtype = GRAIN
|
||||||
grind_results = list("flour" = 0)
|
grind_results = list("flour" = 0)
|
||||||
|
tastes = list("wheat" = 1)
|
||||||
|
|
||||||
// Oat
|
// Oat
|
||||||
/obj/item/seeds/wheat/oat
|
/obj/item/seeds/wheat/oat
|
||||||
@@ -44,6 +45,7 @@
|
|||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = GRAIN
|
foodtype = GRAIN
|
||||||
grind_results = list("flour" = 0)
|
grind_results = list("flour" = 0)
|
||||||
|
tastes = list("oat" = 1)
|
||||||
|
|
||||||
// Rice
|
// Rice
|
||||||
/obj/item/seeds/wheat/rice
|
/obj/item/seeds/wheat/rice
|
||||||
@@ -66,6 +68,7 @@
|
|||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = GRAIN
|
foodtype = GRAIN
|
||||||
grind_results = list("rice" = 0)
|
grind_results = list("rice" = 0)
|
||||||
|
tastes = list("rice" = 1)
|
||||||
|
|
||||||
//Meatwheat - grows into synthetic meat
|
//Meatwheat - grows into synthetic meat
|
||||||
/obj/item/seeds/wheat/meat
|
/obj/item/seeds/wheat/meat
|
||||||
@@ -87,6 +90,7 @@
|
|||||||
seed = /obj/item/seeds/wheat/meat
|
seed = /obj/item/seeds/wheat/meat
|
||||||
foodtype = MEAT | GRAIN
|
foodtype = MEAT | GRAIN
|
||||||
grind_results = list("flour" = 0, "blood" = 0)
|
grind_results = list("flour" = 0, "blood" = 0)
|
||||||
|
tastes = list("meatwheat" = 1)
|
||||||
|
|
||||||
/obj/item/reagent_containers/food/snacks/grown/meatwheat/attack_self(mob/living/user)
|
/obj/item/reagent_containers/food/snacks/grown/meatwheat/attack_self(mob/living/user)
|
||||||
user.visible_message("<span class='notice'>[user] crushes [src] into meat.</span>", "<span class='notice'>You crush [src] into something that resembles meat.</span>")
|
user.visible_message("<span class='notice'>[user] crushes [src] into meat.</span>", "<span class='notice'>You crush [src] into something that resembles meat.</span>")
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
filling_color = "#FFD700"
|
filling_color = "#FFD700"
|
||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = FRUIT
|
foodtype = FRUIT
|
||||||
|
tastes = list("cocoa" = 1)
|
||||||
|
|
||||||
// Vanilla Pod
|
// Vanilla Pod
|
||||||
/obj/item/seeds/cocoapod/vanillapod
|
/obj/item/seeds/cocoapod/vanillapod
|
||||||
@@ -46,3 +47,4 @@
|
|||||||
icon_state = "vanillapod"
|
icon_state = "vanillapod"
|
||||||
filling_color = "#FFD700"
|
filling_color = "#FFD700"
|
||||||
foodtype = FRUIT
|
foodtype = FRUIT
|
||||||
|
tastes = list("vanilla" = 1)
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = VEGETABLES
|
foodtype = VEGETABLES
|
||||||
juice_results = list("corn_starch" = 0)
|
juice_results = list("corn_starch" = 0)
|
||||||
|
tastes = list("corn" = 1)
|
||||||
|
|
||||||
/obj/item/grown/corncob
|
/obj/item/grown/corncob
|
||||||
name = "corn cob"
|
name = "corn cob"
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
/obj/item/reagent_containers/food/snacks/grown/shell/eggy
|
/obj/item/reagent_containers/food/snacks/grown/shell/eggy
|
||||||
seed = /obj/item/seeds/eggplant/eggy
|
seed = /obj/item/seeds/eggplant/eggy
|
||||||
name = "Egg-plant"
|
name = "egg-plant"
|
||||||
desc = "There MUST be a chicken inside."
|
desc = "There MUST be a chicken inside."
|
||||||
icon_state = "eggyplant"
|
icon_state = "eggyplant"
|
||||||
trash = /obj/item/reagent_containers/food/snacks/egg
|
trash = /obj/item/reagent_containers/food/snacks/egg
|
||||||
|
|||||||
@@ -103,3 +103,4 @@
|
|||||||
filling_color = "#6B8E23"
|
filling_color = "#6B8E23"
|
||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = VEGETABLES | GROSS
|
foodtype = VEGETABLES | GROSS
|
||||||
|
tastes = list("kudzu" = 1)
|
||||||
|
|||||||
@@ -111,6 +111,7 @@
|
|||||||
trash = /obj/item/gun/ballistic/revolver
|
trash = /obj/item/gun/ballistic/revolver
|
||||||
bitesize_mod = 2
|
bitesize_mod = 2
|
||||||
foodtype = FRUIT
|
foodtype = FRUIT
|
||||||
|
tastes = list("gunpowder" = 1)
|
||||||
|
|
||||||
//Cherry Bombs
|
//Cherry Bombs
|
||||||
/obj/item/seeds/cherry/bomb
|
/obj/item/seeds/cherry/bomb
|
||||||
|
|||||||
@@ -277,6 +277,7 @@
|
|||||||
icon_state = "glowcap"
|
icon_state = "glowcap"
|
||||||
filling_color = "#00FA9A"
|
filling_color = "#00FA9A"
|
||||||
effect_path = /obj/structure/glowshroom/glowcap
|
effect_path = /obj/structure/glowshroom/glowcap
|
||||||
|
tastes = list("glowcap" = 1)
|
||||||
|
|
||||||
|
|
||||||
//Shadowshroom
|
//Shadowshroom
|
||||||
@@ -300,6 +301,7 @@
|
|||||||
desc = "<I>Mycena Umbra</I>: This species of mushroom emits shadow instead of light."
|
desc = "<I>Mycena Umbra</I>: This species of mushroom emits shadow instead of light."
|
||||||
icon_state = "shadowshroom"
|
icon_state = "shadowshroom"
|
||||||
effect_path = /obj/structure/glowshroom/shadowshroom
|
effect_path = /obj/structure/glowshroom/shadowshroom
|
||||||
|
tastes = list("shadow" = 1, "mushroom" = 1)
|
||||||
|
|
||||||
/obj/item/reagent_containers/food/snacks/grown/mushroom/glowshroom/shadowshroom/attack_self(mob/user)
|
/obj/item/reagent_containers/food/snacks/grown/mushroom/glowshroom/shadowshroom/attack_self(mob/user)
|
||||||
. = ..()
|
. = ..()
|
||||||
@@ -368,4 +370,4 @@
|
|||||||
plantname = "Embershroom Mushrooms"
|
plantname = "Embershroom Mushrooms"
|
||||||
product = /obj/item/reagent_containers/food/snacks/grown/ash_flora/mushroom_stem
|
product = /obj/item/reagent_containers/food/snacks/grown/ash_flora/mushroom_stem
|
||||||
genes = list(/datum/plant_gene/trait/plant_type/fungal_metabolism, /datum/plant_gene/trait/glow)
|
genes = list(/datum/plant_gene/trait/plant_type/fungal_metabolism, /datum/plant_gene/trait/glow)
|
||||||
growing_icon = 'icons/obj/hydroponics/growing_mushrooms.dmi'
|
growing_icon = 'icons/obj/hydroponics/growing_mushrooms.dmi'
|
||||||
|
|||||||
@@ -69,4 +69,4 @@
|
|||||||
desc = "They shine like exceptionally low quality amethyst."
|
desc = "They shine like exceptionally low quality amethyst."
|
||||||
icon_state = "onionslice_red"
|
icon_state = "onionslice_red"
|
||||||
filling_color = "#C29ACF"
|
filling_color = "#C29ACF"
|
||||||
list_reagents = list("nutriment" = 5, "vitamin" = 2, "tearjuice" = 2.5)
|
list_reagents = list("nutriment" = 5, "vitamin" = 2, "tearjuice" = 2.5)
|
||||||
|
|||||||
@@ -157,14 +157,20 @@
|
|||||||
|
|
||||||
|
|
||||||
/obj/item/seeds/proc/prepare_result(var/obj/item/reagent_containers/food/snacks/grown/T)
|
/obj/item/seeds/proc/prepare_result(var/obj/item/reagent_containers/food/snacks/grown/T)
|
||||||
if(T.reagents)
|
if(!T.reagents)
|
||||||
for(var/reagent_id in reagents_add)
|
CRASH("[T] has no reagents.")
|
||||||
if(reagent_id == "blood") // Hack to make blood in plants always O-
|
|
||||||
T.reagents.add_reagent(reagent_id, 1 + round(potency * reagents_add[reagent_id], 1), list("blood_type"="O-"))
|
|
||||||
continue
|
|
||||||
|
|
||||||
T.reagents.add_reagent(reagent_id, 1 + round(potency * reagents_add[reagent_id],1))
|
for(var/rid in reagents_add)
|
||||||
return 1
|
var/amount = 1 + round(potency * reagents_add[rid], 1)
|
||||||
|
|
||||||
|
var/list/data = null
|
||||||
|
if(rid == "blood") // Hack to make blood in plants always O-
|
||||||
|
data = list("blood_type" = "O-")
|
||||||
|
if(rid == "nutriment" || rid == "vitamin")
|
||||||
|
// apple tastes of apple.
|
||||||
|
data = T.tastes
|
||||||
|
|
||||||
|
T.reagents.add_reagent(rid, amount, data)
|
||||||
|
|
||||||
|
|
||||||
/// Setters procs ///
|
/// Setters procs ///
|
||||||
|
|||||||
Reference in New Issue
Block a user