fix meat/chickensteak recipe collision (#29323)

This commit is contained in:
warriorstar-orion
2025-05-15 07:37:32 +00:00
committed by GitHub
parent 7bd8293673
commit 6456e9269a
7 changed files with 47 additions and 46 deletions
@@ -0,0 +1,20 @@
RESTRICT_TYPE(/datum/cooking/recipe_step/add_item/meathunk)
/// A specialized add-item step for specific meat subtypes
/datum/cooking/recipe_step/add_item/meathunk
/// A list of subtypes of meat which aren't appropriate substitutes for the generic "hunk of meat" base type in recipes
var/list/exclude_meat_subtypes = list(
/obj/item/food/meat/chicken,
/obj/item/food/meat/patty_raw,
/obj/item/food/meat/patty,
/obj/item/food/meat/raw_meatball,
)
/datum/cooking/recipe_step/add_item/meathunk/New(options)
..(/obj/item/food/meat, options)
/datum/cooking/recipe_step/add_item/meathunk/check_conditions_met(obj/added_item, datum/cooking/recipe_tracker/tracker)
if(is_type_in_list(added_item, exclude_meat_subtypes))
return PCWJ_CHECK_INVALID
return ..()