Support for modded honey in ban-cooking#1497
Support for modded honey in ban-cooking#1497ab9rf merged 4 commits intoDFHack:masterfrom Droseran:ban-cooking-modded-honey
Conversation
Instead of only banning honey from vanilla honey bees, support banning honey added by modded creatures as well.
SilasD
left a comment
There was a problem hiding this comment.
This works; there's nothing wrong with it.
But I would argue that the entire funcs.honey shouldn't really exist. Instead, this code should be folded into funcs.brew.
funcs.brew searches for materials that have a reaction product that is alcohol. And that's what this code does. The only difference here is iterating over creatures instead of plants.
Separating the code just means that anybody who is trying to ban-cooking of brewables needs to ban two categories instead one.
(Combining the two would also make it easier to refactor out the copy-paste code.)
While there's merit to this suggestion, I'm not going to block this change for this alone. Feel free to submit a followup PR. |
This patch allows ban-cooking to ban honey/brewable materials added by creatures other than honey bees. This includes vanilla bumblebees, though their honey is not currently obtainable in vanilla. However, there are mods that make bumblebees hiveable, as well as adding other types of hiveable bees.