Skip to content

New Engine Features: Weapon Style utils#11

Open
4Luke4 wants to merge 1 commit into
Bubb13:develfrom
4Luke4:weapon-style
Open

New Engine Features: Weapon Style utils#11
4Luke4 wants to merge 1 commit into
Bubb13:develfrom
4Luke4:weapon-style

Conversation

@4Luke4

@4Luke4 4Luke4 commented Jun 8, 2026

Copy link
Copy Markdown

Opcode 73 (0x49):

  • special bit0 => right/mainhand only, special bit1 => left/offhand only.

Opcode 342 (0x156):

  • param2 == 5 already lets effects replace RNDBASE combat-round bitmaps. With special bit0 set, EEex treats repeated offhand markers in that bitmap as extra offhand attacks and stores the THAC0 delta (param3) to apply to each such generated roll.

EEex_Sprite_GetWeaponStyle(sprite):

  • Returns the given sprite's currently active weapon style, the active rank for that style, and the original rank recorded on the creature before active stat and effect modification.

Fixes:

  • GetMinDamage()/GetMaxDamage() report rows for the hand-specific damage bonuses but their total range omits those fields. Adjust only the display total; the actual combat damage path reads the same stats independently.
  • When enabling the Extra Combat Info hidden game option, the vanilla call site can pass a right-hand aggregate while formatting a left-hand breakdown, so replace only the integer argument with the damage bonus matching the currently selected hand.

See also: Bubb13/EEex#130.

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