mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-28 15:57:58 +00:00
[INT64] Fix int64 for OOC Regen and GetHP(), GetMaxHP(), GetItemHPBonuses() in Perl/Lua. (#2218)
* [INT64] Fix int64 for OOC Regen and GetHP(), GetMaxHP(), GetItemHPBonuses() in Perl/Lua. - These all had int64 values and were overflowing, returning garbage data. * Update npc.cpp
This commit is contained in:
+4
-4
@@ -884,10 +884,10 @@ bool NPC::Process()
|
||||
ProcessFlee();
|
||||
}
|
||||
|
||||
uint32 npc_sitting_regen_bonus = 0;
|
||||
uint32 pet_regen_bonus = 0;
|
||||
uint64 npc_regen = 0;
|
||||
int64 npc_hp_regen = GetNPCHPRegen();
|
||||
int64 npc_sitting_regen_bonus = 0;
|
||||
int64 pet_regen_bonus = 0;
|
||||
int64 npc_regen = 0;
|
||||
int64 npc_hp_regen = GetNPCHPRegen();
|
||||
|
||||
if (GetAppearance() == eaSitting) {
|
||||
npc_sitting_regen_bonus += 3;
|
||||
|
||||
Reference in New Issue
Block a user