Skip to content

Integrate Fabled skill-API stat scaling and attribute sync#337

Open
Travja wants to merge 1 commit into
split/10-combat-formula-refactorfrom
split/11-fabled-hook-integration
Open

Integrate Fabled skill-API stat scaling and attribute sync#337
Travja wants to merge 1 commit into
split/10-combat-formula-refactorfrom
split/11-fabled-hook-integration

Conversation

@Travja

@Travja Travja commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Split out of #320 (piece 12/12 — stacked on #336, review #335 and #336 first).

FabledHook now:

  • Syncs MAX_MANA (Divinity item stat) into Fabled's mana pool via PlayerMaxManaChangeEvent.
  • Pushes/clears Fabled PlayerAttributeModifiers derived from Divinity item attributes on equip change and player quit.
  • Exposes applyStatScale(player, statId, value), which lets Fabled's attributes.yml rescale any Divinity stat by name — wired into every EntityStats stat accessor (getDamageByType, getDefenseByType, getItemStat, getPenetration, getDynamicBuff) added across Add damage/defense % buff and per-type penetration stats #335/Refactor combat defense formula, add per-type buffs/penetration to damage calc #336.
  • Adds DivinityDamageEvent.Start/Dodge handlers that read a fabled_dmg_flags metadata bitmask off the damager to let Fabled skills suppress crit/skill-crit, force a block, zero bleed/vampirism, or force-cancel (dodge) on a specific hit.

ItemAbilityHandler now clears a player's Fabled attribute modifiers on quit (previously only cleared on death).


Generated by Claude Code

@Travja
Travja force-pushed the split/10-combat-formula-refactor branch from eae315b to b004641 Compare July 23, 2026 05:26
@Travja
Travja force-pushed the split/11-fabled-hook-integration branch from 952d194 to 0d6c1b0 Compare July 23, 2026 05:26
@Travja
Travja force-pushed the split/10-combat-formula-refactor branch from b004641 to 2315fec Compare July 23, 2026 05:38
FabledHook now:
 - Syncs MAX_MANA (Divinity item stat) into Fabled's mana pool via
   PlayerMaxManaChangeEvent.
 - Pushes/clears Fabled PlayerAttributeModifiers derived from Divinity
   item attributes on equip change and player quit.
 - Exposes applyStatScale(player, statId, value), which lets Fabled's
   attributes.yml rescale any Divinity stat by name — wired into every
   EntityStats stat accessor (getDamageByType, getDefenseByType,
   getItemStat, getPenetration, getDynamicBuff) added across the
   preceding PRs in this stack.
 - Adds DivinityDamageEvent.Start/Dodge handlers that read a
   "fabled_dmg_flags" metadata bitmask off the damager to let Fabled
   skills suppress crit/skill-crit, force a block, zero bleed/vampirism,
   or force-cancel (dodge) on a specific hit.

ItemAbilityHandler now clears a player's Fabled attribute modifiers on
quit (previously only cleared on death).
@Travja
Travja force-pushed the split/11-fabled-hook-integration branch from 0d6c1b0 to b211dcb Compare July 23, 2026 05:38
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.

2 participants