[Bug Fix] Fix issue with overflow on min/max hit dmg in npc scaling calculations (#3052)

* [Cleanup] Cleanup npc.cpp and npc scaling

* fix issue with min/max damage overflows

* formatting
This commit is contained in:
Aeadoin
2023-03-10 09:36:59 -05:00
committed by GitHub
parent 12dcbd0871
commit 0ba90df1f1
4 changed files with 100 additions and 108 deletions
+2 -2
View File
@@ -422,8 +422,8 @@ public:
void SetAvoidanceRating(int32 d) { avoidance_rating = d;}
int32 GetRawAC() const { return AC; }
float GetNPCStat(std::string stat);
void ModifyNPCStat(std::string stat, std::string value);
float GetNPCStat(const std::string& stat);
void ModifyNPCStat(const std::string& stat, const std::string& value);
virtual void SetLevel(uint8 in_level, bool command = false);
bool IsLDoNTrapped() const { return ldon_trapped; }