Skip to content

Dharok set effect#121

Open
Sacca-1 wants to merge 2 commits into
Matsyir:masterfrom
Sacca-1:dharok-set-effect
Open

Dharok set effect#121
Sacca-1 wants to merge 2 commits into
Matsyir:masterfrom
Sacca-1:dharok-set-effect

Conversation

@Sacca-1

@Sacca-1 Sacca-1 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Closes #23.

Finally got around to the Dharok set effect. It's mostly done as discussed, but since the PvP-Hub is now a thing, I figured I'd include recalculation when an exact HP value is synced after a fight.

The recalculation could also be done server-side, which is probably preferred if the goal is to keep the website fully up to date with the correct stats. I therefore split local recalculation into a separate commit, so it can be dropped if server-side makes more sense.

Also KO chance recalculation will need a similar path, but since that's more of a general thing than Dharok-specific (and would also probably be better server-side), I left it out of this PR for now.

Sacca-1 added 2 commits July 16, 2026 17:29
Apply Dharok scaling to live attacks using exact local HP or the latest visible or estimated opponent HP.

- Detect complete normal, degraded, and LMS sets while excluding broken pieces.
- Persist attack-time opponent HP locally and show it in the detailed-log heart field.
- Keep the local aH field out of PvP-Hub upload payloads.
- Cover set detection, scaling, HP formatting, legacy JSON, and upload compatibility.
Rebuild logged Dharok attacks using the exact HP snapshots supplied by the merged fight.

- Prefer synced attacker C.h and fighter b.h values over local estimates.
- Update max hit, expected damage, and the fighter expected-damage aggregate.
- Run reconciliation after both fresh and cached PvP-Hub sync responses.
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.

Dharoks set not considered in melee maxhit

1 participant