[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:
Kinglykrab
2022-05-29 14:33:30 -04:00
committed by GitHub
parent bcf7ccefcd
commit 8f3ac74196
5 changed files with 22 additions and 22 deletions
+4 -4
View File
@@ -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;