diff --git a/ban-cooking.lua b/ban-cooking.lua index 7ac6f3ea3..2254e116d 100644 --- a/ban-cooking.lua +++ b/ban-cooking.lua @@ -80,9 +80,18 @@ funcs.booze = function() end funcs.honey = function() - local mat = dfhack.matinfo.find("CREATURE:HONEY_BEE:HONEY") - if mat then - ban_cooking('honey bee honey', mat.type, mat.index, df.item_type.LIQUID_MISC, -1) + for _, c in ipairs(df.global.world.raws.creatures.all) do + for _, m in ipairs(c.material) do + if m.flags.EDIBLE_COOKED then + for _, s in ipairs(m.reaction_product.id) do + if s.value == "DRINK_MAT" then + local matinfo = dfhack.matinfo.find(c.creature_id, m.id) + ban_cooking(c.name[2] .. ' ' .. m.id, matinfo.type, matinfo.index, df.item_type.LIQUID_MISC, -1) + break + end + end + end + end end end diff --git a/changelog.txt b/changelog.txt index 5ecf8024e..e2d0e0210 100644 --- a/changelog.txt +++ b/changelog.txt @@ -31,6 +31,7 @@ Template for new versions: ## New Features ## Fixes +- `ban-cooking`: bans honey added by creatures other than vanilla honey bee ## Misc Improvements