Rewrite stats overflow calculation

This commit is contained in:
Yunfan Li
2024-09-04 11:42:29 +08:00
parent ab40471933
commit ddbb304986
3 changed files with 96 additions and 42 deletions

View File

@@ -15,7 +15,7 @@
enum StatsOverflowThreshold
{
SPELL_HIT_OVERFLOW = 17,
SPELL_HIT_OVERFLOW = 14,
MELEE_HIT_OVERFLOW = 8,
RANGED_HIT_OVERFLOW = 8,
EXPERTISE_OVERFLOW = 26,
@@ -48,6 +48,7 @@ private:
bool NotBestArmorType(uint32 item_subclass_armor);
void ApplyOverflowPenalty(Player* player);
CollectorType GetHitOverflowType(Player* player);
private:
Player* player_;