mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-06 17:22:17 +00:00
[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:
1 parent
12dcbd0871
commit
0ba90df1f1
4 files changed
+100
-108
No files matched your search
+2
-2
@@ -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; }
|
||||
|
||||
Reference in new issue
Block a user