mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 08:32:41 +00:00
Wound carry-over went through three integer truncations across the legacy combat scale (123 max) and the dndChar scale (78 max). 101/123 persisted as int(64.04)=64, then restored as int(100.92)=100 — losing 0.92 HP every fight. Switching both sides to math.Round means most HPs round-trip exactly; the residual error is bounded by ±1 HP from the inherent scale mismatch (1 dndChar HP ≈ 1.58 legacy HP, so some pairs collide on the smaller scale). Acceptable; the prior always-truncate behavior was directionally biased against the player. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>