Custom reagent holders no longer blow through the overlay cap (#68205)

This commit is contained in:
oranges
2022-07-08 15:04:20 -04:00
committed by GitHub
parent a239a7873f
commit f91ccd93c2
@@ -28,7 +28,7 @@
atom/replacement,
fill_type,
ingredient_type = CUSTOM_INGREDIENT_TYPE_EDIBLE,
max_ingredients = MAX_ATOM_OVERLAYS - 2,
max_ingredients = MAX_ATOM_OVERLAYS - 3, // The cap is >= MAX_ATOM_OVERLAYS so we reserve 2 for top /bottom of item + 1 to stay under cap
list/obj/item/initial_ingredients = null)
if(!isatom(parent))
return COMPONENT_INCOMPATIBLE