Skip to content

New Engine Feature: Add companion opcodes for op248/op249#121

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

New Engine Feature: Add companion opcodes for op248/op249#121
4Luke4 wants to merge 1 commit into
Bubb13:develfrom
4Luke4:miss

Conversation

@4Luke4
Copy link
Copy Markdown
Contributor

@4Luke4 4Luke4 commented May 15, 2026

This pull request introduces two new opcodes, op410 (MeleeMissEffect) and op411 (RangeMissEffect), to support custom .EFF files that are only applied on attack roll misses in melee and ranged combat.

New Miss-Only Effect Opcodes and Infrastructure:

  • These new opcodes reuse vanilla effect application logic but store their child effects in custom, EEex-managed storage for application only on attack roll misses.

Hooks and Effect Handling:

  • Added hooks in EEex_Mix_Patch.lua to detect melee and ranged attack misses and trigger the application of stored miss-only effects.
  • Expanded hooks for ApplyEffect() of melee and ranged effects to pass additional context to C++ for proper storage and management of miss-only effects.

Helper Functions for Miss-Only Effects:

  • Introduced Lua helpers to iterate over stored miss-only melee and ranged effects for a given sprite.

Requires: Bubb13/InfinityLoader#6.

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