Skip to content

Conversation

Droseran
Copy link
Contributor

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.

Instead of only banning honey from vanilla honey bees, support banning honey added by modded creatures as well.
Copy link
Contributor

@SilasD SilasD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants