mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-25 14:11:29 +00:00
More logging [skip ci]
This commit is contained in:
parent
672e6766c7
commit
6ec577f241
@ -372,7 +372,18 @@ function TryCriticalHit(e)
|
||||
end
|
||||
end
|
||||
|
||||
critMod = critMod + GetCritDmgMod(self, e.hit.skill) * 2;
|
||||
critMod = critMod + GetCritDmgMod(self, e.hit.skill) * 2;
|
||||
|
||||
eq.debug(
|
||||
string.format("[%s] [Mob::TryCriticalHit] CritChance [%i] CritMod [%i] GetCritDmgMod [%i] CripSuccess [%s]",
|
||||
e.self:GetCleanName(),
|
||||
critChance,
|
||||
critMod,
|
||||
GetCritDmgMod(self, e.hit.skill),
|
||||
(crip_success) and "true" or "false"
|
||||
)
|
||||
);
|
||||
|
||||
e.hit.damage_done = e.hit.damage_done * critMod / 100;
|
||||
|
||||
local deadlySuccess = false;
|
||||
|
||||
@ -4051,6 +4051,18 @@ void Mob::TryCriticalHit(Mob *defender, uint16 skill, int32 &damage, ExtraAttack
|
||||
}
|
||||
|
||||
critMod += GetCritDmgMob(skill) * 2; // To account for base crit mod being 200 not 100
|
||||
|
||||
Log.Out(
|
||||
Logs::General,
|
||||
Logs::Combat,
|
||||
"[%s] [Mob::TryCriticalHit] CritChance [%.2f] CritMod [%u] GetCritDmgMod [%i] CripSuccess [%s]",
|
||||
GetCleanName(),
|
||||
critChance,
|
||||
critMod,
|
||||
GetCritDmgMob(skill),
|
||||
crip_success ? "true" : "false"
|
||||
);
|
||||
|
||||
damage = damage * critMod / 100;
|
||||
|
||||
bool deadlySuccess = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user