Skip to content

New Engine Feature: Tweak Op261#126

Open
4Luke4 wants to merge 1 commit into
Bubb13:develfrom
4Luke4:op261
Open

New Engine Feature: Tweak Op261#126
4Luke4 wants to merge 1 commit into
Bubb13:develfrom
4Luke4:op261

Conversation

@4Luke4
Copy link
Copy Markdown
Contributor

@4Luke4 4Luke4 commented May 21, 2026

Opcode #261 Enhancements

  • Implemented new hooks for both mage and priest spell selection (Hook-CGameEffectRememorizeSpell::ApplyEffect()-MageSelectedSpell and ...-PriestSelectedSpell), which call into EEex::Opcode_Hook_Op261_SelectRandomSpell to optionally select a random spell instead of the vanilla one.

Level Loop Control Hooks

  • Added hooks after the level decrement for both mage and priest processing (Hook-CGameEffectRememorizeSpell::ApplyEffect()-MageAfterLevelDecrement and ...-PriestAfterLevelDecrement), which invoke EEex::Opcode_Hook_Op261_ShouldStopAfterCurrentLevel to determine whether to halt further level processing based on the opcode's special parameter.

Requires: Bubb13/InfinityLoader#8.

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.

1 participant