mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
You Taste Uncooked Dough Fix (#15539)
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
/decl/recipe
|
||||
var/display_name
|
||||
var/list/reagents // example: = list(/decl/reagent/drink/berryjuice = 5) // do not list same reagent twice
|
||||
var/list/recipe_taste_override // example: = list("uncooked dough" = "crispy dough")
|
||||
var/list/items // example: = list(/obj/item/crowbar, /obj/item/welder) // place /foo/bar before /foo
|
||||
var/list/fruit // example: = list("fruit" = 3)
|
||||
var/coating = null//Required coating on all items in the recipe. The default value of null explitly requires no coating
|
||||
@@ -227,6 +228,21 @@
|
||||
//Doesnt matter whether or not there's enough, we assume that check is done before
|
||||
container.reagents.trans_type_to(buffer, r, reagents[r])
|
||||
|
||||
// this is the generic list of reagent tastes to change, but the recipe-specific one override this
|
||||
var/list/taste_replacers = list(
|
||||
"uncooked dough" = "cooked dough"
|
||||
)
|
||||
for(var/reagent in buffer.reagent_data)
|
||||
for(var/taste in buffer.reagent_data[reagent])
|
||||
if(taste in recipe_taste_override)
|
||||
buffer.reagent_data[reagent][recipe_taste_override[taste]] = buffer.reagent_data[reagent][taste]
|
||||
buffer.reagent_data[reagent] -= taste
|
||||
continue
|
||||
if(taste in taste_replacers)
|
||||
buffer.reagent_data[reagent][taste_replacers[taste]] = buffer.reagent_data[reagent][taste]
|
||||
buffer.reagent_data[reagent] -= taste
|
||||
continue
|
||||
|
||||
/*
|
||||
Now we've removed all the ingredients that were used and we have the buffer containing the total of
|
||||
all their reagents.
|
||||
|
||||
@@ -154,6 +154,7 @@
|
||||
/obj/item/reagent_containers/food/snacks/sliceable/flatdough,
|
||||
/obj/item/reagent_containers/food/snacks/meat
|
||||
)
|
||||
recipe_taste_override = list("uncooked dough" = "crispy dough")
|
||||
result = /obj/item/reagent_containers/food/snacks/meatpie
|
||||
|
||||
/decl/recipe/tofupie
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: Geeves
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- bugfix: "Dough-based pastries no longer have an uncooked dough taste, and meatpies specifically now have a crispy dough taste."
|
||||
Reference in New Issue
Block a user