mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-26 19:52:17 +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:
1 parent
bcf7ccefcd
commit
8f3ac74196
5 files changed
+22
-22
No files matched your search
+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