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 text appearing out of alignment with adjusted booms #643

Merged
merged 3 commits into from
Feb 24, 2025

Conversation

NQNStudios
Copy link
Collaborator

@NQNStudios NQNStudios commented Feb 20, 2025

This fixes the rendering of melee damage booms on enemies larger than 1x1. It also doesn't break spell booms (which already worked).

I saw a place to do a refactor which I thought would make it easier to debug this. The fix (in the second commit) could be cherry-picked without the refactor if it looks like I got that wrong.

Fix #127

@NQNStudios NQNStudios added bug game Affects the game, as opposed to the editors labels Feb 20, 2025
void damage_target(short target,short dam,eDamageType type,short sound_type) {
if(target == 6) return;
short damage_target(short target,short dam,eDamageType type,short sound_type, bool do_print, short who_hit, eRace race) {
if(target == 6) return 0;
Copy link
Member

@CelticMinstrel CelticMinstrel Feb 21, 2025

Choose a reason for hiding this comment

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

Come to think of it, I guess this should exclude everything from 6 up to (but not including) 100…

Maybe also numbers >= univ.town.monst.size() + 100.

@CelticMinstrel CelticMinstrel merged commit 756324a into calref:master Feb 24, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug game Affects the game, as opposed to the editors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Damage burst appears on nose of bear when it is damaged, instead of in the middle.
2 participants