mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-06 22:52:25 +00:00
Damage Table logging [skip ci]
This commit is contained in:
parent
a3ffa7e262
commit
725d080cac
@ -68,8 +68,18 @@ function MeleeMitigation(e)
|
|||||||
return e;
|
return e;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
eq.debug(
|
||||||
|
string.format("[%s] ClientAttack] Damage Table [%i] WeaponDMG [%i]",
|
||||||
|
e.self:GetCleanName(),
|
||||||
|
GetDamageTable(e.other, e.hit.skill),
|
||||||
|
e.hit.base_damage
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
-- Shouldn't this be using the client e.self instead of e.other ?
|
||||||
e.hit.damage_done = 2 * e.hit.base_damage * GetDamageTable(e.other, e.hit.skill) / 100;
|
e.hit.damage_done = 2 * e.hit.base_damage * GetDamageTable(e.other, e.hit.skill) / 100;
|
||||||
e.hit = DoMeleeMitigation(e.self, e.other, e.hit, e.opts);
|
e.hit = DoMeleeMitigation(e.self, e.other, e.hit, e.opts);
|
||||||
|
|
||||||
return e;
|
return e;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -1168,6 +1168,16 @@ bool Client::Attack(Mob* other, int Hand, bool bRiposte, bool IsStrikethrough, b
|
|||||||
return (true);
|
return (true);
|
||||||
|
|
||||||
int min_hit = 1;
|
int min_hit = 1;
|
||||||
|
|
||||||
|
Log.Out(
|
||||||
|
Logs::General,
|
||||||
|
Logs::Combat,
|
||||||
|
"[%s] [Client::Attack] Damage Table [%u] WeaponDMG [%i]",
|
||||||
|
GetCleanName(),
|
||||||
|
GetDamageTable(skillinuse),
|
||||||
|
weapon_damage
|
||||||
|
);
|
||||||
|
|
||||||
int max_hit = (2*weapon_damage*GetDamageTable(skillinuse)) / 100;
|
int max_hit = (2*weapon_damage*GetDamageTable(skillinuse)) / 100;
|
||||||
|
|
||||||
if(GetLevel() < 10 && max_hit > RuleI(Combat, HitCapPre10))
|
if(GetLevel() < 10 && max_hit > RuleI(Combat, HitCapPre10))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user