Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fireflies API: An idea to resolve issue #2966 #3087

Closed
wants to merge 4 commits into from
Closed

Fireflies API: An idea to resolve issue #2966 #3087

wants to merge 4 commits into from

Conversation

JoseDouglas26
Copy link
Contributor

This is my initial idea to resolve the issues reported in issue #2966. Using the fireflies API, mods like Ethereal and Extra Biomes can register the decoration of fireflies in their custom biomes.

@JoseDouglas26
Copy link
Contributor Author

The idea is that this API evolves to allow greater control over recording firefly decorations.

Copy link
Contributor

@appgurueu appgurueu left a comment

Choose a reason for hiding this comment

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

The basic idea of this PR - adding an API to register firefly decorations - is good. However, please remove redundant comments, please document the API in game_api.txt.

Code-wise, three things seem fishy to me: (1) Reusing decoration names; (2) not using the biomes parameter when registering decorations for mgv6; (3) the two calls to register_decoration seem fishy; I believe there should ultimately only be one if this is refactored properly.

Design-wise, all these functions basically do is set some different defaults for deco registrations and do two registrations, one for high, one for low. There's some potential for deduplication here. What if you made the function take a table of "overrides", which would be applied "on top" of the default values?

Ultimately, I frankly also have to say that I think this is low priority. Without this, mods that register biomes just have to register the decorations themselves (which also gives them finer-grained control).

@JoseDouglas26 JoseDouglas26 deleted the fireflies_changes branch December 29, 2023 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants