mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
[int64] Support for HP / Mana / End / Damage / Hate (#2091)
* Initial int64 work * Hate 64 bit * Update special_attacks.cpp * Aggro / Damage / Hate int64 * NPC edit adjustments * Fix bot compile * More int64 adjustments * More int64 references * npcedit references * aggrozone * More int64 changes * More int64 changes for damage * Many more damage int64 references * More spell damage int64 conversions * HealDamage * Damage fully working * Remove debug * Add migration * More int64 adjustments * Much wow, many int64 * More int64 * PR adjustments
This commit is contained in:
@@ -32,16 +32,16 @@ bool CombatRecord::InCombat()
|
||||
return start_time > 0;
|
||||
}
|
||||
|
||||
void CombatRecord::ProcessHPEvent(int hp, int current_hp)
|
||||
void CombatRecord::ProcessHPEvent(int64 hp, int64 current_hp)
|
||||
{
|
||||
// damage
|
||||
if (hp < current_hp) {
|
||||
damage_received = damage_received + abs(current_hp - hp);
|
||||
damage_received = damage_received + std::llabs(current_hp - hp);
|
||||
}
|
||||
|
||||
// heal
|
||||
if (hp > current_hp && current_hp > 0) {
|
||||
heal_received = heal_received + abs(current_hp - hp);
|
||||
heal_received = heal_received + std::llabs(current_hp - hp);
|
||||
}
|
||||
|
||||
LogCombatRecordDetail(
|
||||
@@ -50,7 +50,7 @@ void CombatRecord::ProcessHPEvent(int hp, int current_hp)
|
||||
heal_received,
|
||||
current_hp,
|
||||
hp,
|
||||
abs(current_hp - hp)
|
||||
std::llabs(current_hp - hp)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user