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: Lock the HUD down when in vampire lord form #109

Merged
merged 10 commits into from
Jan 13, 2024
Merged

Conversation

ceejbot
Copy link
Owner

@ceejbot ceejbot commented Jan 13, 2024

This fixes #100 : handle being a vampire lord more gracefully.

Added two new checks to the player conveniences: isVampireLord() and isWerewolf(). These check the player's race and return true if appropriate. Put the vampire lord check to work in deciding if we should respond to keystrokes at all. This effectively locks the HUD out. The HUD cannot do anything useful for vampire lords, because they are restricted to a tiny handful of spells and powers, all of which must be selected from the favorites menu.

While testing this work, observed some things with vampire spells that could be better. This resulted in some new icons, some color selection reworks, and a bit of code cleanup.

If the vampire lord check returns true, we do not respond to
key presses. There is no visual change in the HUD. (We could
draw it in some dimmed red mode, perhaps?)
Also pulled the color-determining function into the
keywords file and re-used it.
A new item category, a new icon, a new clause in the
huditem maker. This might need some tweaking.
@ceejbot ceejbot merged commit 090faf9 into latest Jan 13, 2024
1 check passed
@ceejbot ceejbot deleted the ceej/bug-100 branch January 13, 2024 02:24
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.

handle being a vampire lord more gracefully
1 participant