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 veins' palette #151

Merged
merged 4 commits into from
May 7, 2024
Merged

Conversation

ZivDero
Copy link
Contributor

@ZivDero ZivDero commented May 3, 2024

Veins and the Veinhole monster are set to use unit palette in TS. In RA2/YR, this is still the case for the Veinhole monster, but veins themselves now use theater palette. This PR addresses this issue.


if (overlayType.Wall || overlayType.IsVeins)
if (overlayType.Wall || overlayType.IsVeinholeMonster)
palette = unitPalette;
Copy link
Owner

Choose a reason for hiding this comment

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

Currently this seems confusing for veinhole monsters at first glance, considering they have both IsVeins=yes and IsVeinholeMonster=yes.

I think this would be clearer like

                    if (overlayType.Wall || overlayType.IsVeinholeMonster)
                        palette = unitPalette;
                    else if (overlayType.Tiberium || overlayType.IsVeins)
                        palette = Constants.TheaterPaletteForTiberium ? tiberiumPalette : unitPalette;

@Rampastring Rampastring merged commit 0f20548 into Rampastring:master May 7, 2024
1 check passed
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.

None yet

2 participants