Skip to content

Royal Titans - #170

Merged
Lexer747 merged 7 commits into
ngraves95:mainfrom
Lexer747:royal-titans
Aug 7, 2026
Merged

Lexer747 merged 7 commits into
ngraves95:mainfrom
Lexer747:royal-titans

Conversation

@Lexer747

@Lexer747 Lexer747 commented Aug 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Key changes:

  • Fix Yama and TDs to use npcSpawned instead of looping over every NPC in the world view to find out when to add data to their internal state.
  • Plumb the spellbook into variable speed.
  • Fix Damage to just be computed from HP, more reliable and works for any combat style.
    • Magic wasn't maintainable the old way as it would need to subtract the fixed exp cost of each spell which is a nightmare 😅
  • Moves and cleans up a bunch of code.

Royal Titans

The premise is simple until I noticed that the hit delay was messing things up...

As the wiki states for each elemental you kill with the correct elemental spell your next attack is speed up by 1 tick. There's this set of complications:

  • Hit Delay determines when you're rewarded the bonus ticks and that can't be "banked"
    • Twinflame with blasts will kill 1 tick later than normal hit delay
  • The AoE effect isn't visible in the HP exp earned, e.g. killing 3 elements at once only awards 40 hp worth hp exp.

Therefore the code has ended up as it has. Track the elementals via the new npcSpawned, when we attack one of them with a mage spell matching the animation data for the blast and higher work out if that attack would hit any of the other nearby elementals. Once we have this count do some hit delay maths to determine the actual speed up we expect once the projectile lands.

Testing

https://youtu.be/5HSlpeKzcP0

Shows partial kills, manual casting and twinflame.

Also tested but now shown, did a Yama kill and purging staff spec was fine. Did a TD kill and the punish still worked.

Fixes #158

@Lexer747

Lexer747 commented Aug 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

Still TODO:

[X] Release notes
[X] Version bump

@Lexer747
Lexer747 merged commit 639419b into ngraves95:main Aug 7, 2026
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.

Twinflame Staff doesn't change speed when attacking Royal Titans

1 participant