[MIRROR] Fixing sweet potatoes and potato wedges outputting tatortots. (#4147)

* Fixing sweet potatoes and potato wedges outputting tatortots. (#57607)

* Fixing sweet potatoes and potato wedges outputting tatortots.

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-03-14 14:03:11 +00:00
committed by GitHub
co-authored by Ghom
parent 7c5d57d8f8
commit c0ae0bddcf
2 changed files with 16 additions and 1 deletions
@@ -33,7 +33,10 @@
continue
recipe = new recipe
var/list/typecache = list()
for(var/input_type in typesof(recipe.input))
var/list/bad_types
for(var/bad_type in recipe.blacklist)
LAZYADD(bad_types, typesof(bad_type))
for(var/input_type in typesof(recipe.input) - bad_types)
typecache[input_type] = recipe
for(var/machine_type in typesof(recipe.required_machine))
LAZYADD(processor_inputs[machine_type], typecache)
@@ -1,6 +1,8 @@
/datum/food_processor_process
/// What this recipe takes
var/input
/// Subtypes of what the recipe takes that it can't actually take.
var/list/blacklist
/// What this recipe creates
var/output
/// The amount of time this recipe takes.
@@ -15,10 +17,19 @@
/datum/food_processor_process/meat
input = /obj/item/food/meat/slab
output = /obj/item/food/raw_meatball
blacklist = list(/obj/item/food/meat/slab/human,
/obj/item/food/meat/slab/corgi,
/obj/item/food/meat/slab/xeno,
/obj/item/food/meat/slab/bear,
/obj/item/food/meat/slab/chicken)
multiplier = 3
/datum/food_processor_process/cutlet
input = /obj/item/food/meat/cutlet/plain
blacklist = list(/obj/item/food/meat/cutlet/plain/human,
/obj/item/food/meat/cutlet/xeno,
/obj/item/food/meat/cutlet/bear,
/obj/item/food/meat/cutlet/chicken)
output = /obj/item/food/raw_meatball
/datum/food_processor_process/meat/human
@@ -72,6 +83,7 @@
/datum/food_processor_process/potato
input = /obj/item/food/grown/potato
blacklist = list(/obj/item/food/grown/potato/sweet, /obj/item/food/grown/potato/wedges)
output = /obj/item/food/tatortot
/datum/food_processor_process/carrot