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

Fix Material color to check for tiles dynamically instead of using a … #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sgt-Imalas
Copy link

@Sgt-Imalas Sgt-Imalas commented Jan 8, 2024

The current live version of the mod uses a static list of building IDs for applying the tile-tint. this doesnt work for any tiles added by other mods and base tiles that arent added to the list like the storage tile.

the change made in this request adjusts this behavior to instead check for a KAnimGridTileVisualizer component, something present on all these tiles to work with all tiles klei or other mods add.

The ElementIdx also changed recently from byte to ushort, allowing mods and klei to add more than 256 elements in total, so I adjusted that aswell

…fixed id list, updated elementID byte->ushort
@Ghent
Copy link

Ghent commented Apr 17, 2024

Question: Does this also "fix" the display of Cobalt and Cobaltite? Thanks

@Sgt-Imalas
Copy link
Author

there is nothing to be fixed about those. the internal colours of those elements are just that bright, adjusting those is an optional thing anyone can do but does not belong into this pr

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.

2 participants