mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-10-12 02:13:06 +00:00
Replaces ParseFixed6/parseFixed6/readFixed6/readDecimal's raw-int plumbing with the new FixedPoint type, then propagates strongly-typed fixed-point fields through everywhere that consumed them: player _pHitPoints/_pMana (and their base/max variants), ClassAttributes' percentage/multiplier fields, Item::_iPLHP/_iPLMana, and Monster::hitPoints/maxHitPoints. Eliminates manual <<6/>>6 bit-shifting at nearly every call site in favor of fromInt/fromRaw/whole() and the new fixed-point arithmetic operators, while preserving raw() only at genuine serialization/network wire-format boundaries. Co-Authored-By: Claude Sonnet 5 <[email protected]>