mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
More logging [skip ci]
This commit is contained in:
+17
-5
@@ -3995,13 +3995,25 @@ void Mob::TryCriticalHit(Mob *defender, uint16 skill, int32 &damage, ExtraAttack
|
||||
|
||||
//Get Base CritChance from Dex. (200 = ~1.6%, 255 = ~2.0%, 355 = ~2.20%) Fall off rate > 255
|
||||
//http://giline.versus.jp/shiden/su.htm , http://giline.versus.jp/shiden/damage_e.htm
|
||||
if (GetDEX() <= 255)
|
||||
if (GetDEX() <= 255) {
|
||||
critChance += (float(GetDEX()) / 125.0f);
|
||||
else if (GetDEX() > 255)
|
||||
critChance += (float(GetDEX()-255)/ 500.0f) + 2.0f;
|
||||
critChance += critChance*(float)CritChanceBonus /100.0f;
|
||||
}
|
||||
else if (GetDEX() > 255) {
|
||||
critChance += (float(GetDEX() - 255) / 500.0f) + 2.0f;
|
||||
}
|
||||
critChance += critChance * (float) CritChanceBonus / 100.0f;
|
||||
}
|
||||
|
||||
Log.Out(
|
||||
Logs::General,
|
||||
Logs::Combat,
|
||||
"[%s] [Mob::TryCriticalHit] CritChance [%.2f] CritChanceBonus [%i] Dex [%i] Post-Dex-Block",
|
||||
GetCleanName(),
|
||||
critChance,
|
||||
CritChanceBonus,
|
||||
GetDEX()
|
||||
);
|
||||
|
||||
if(opts) {
|
||||
critChance *= opts->crit_percent;
|
||||
critChance += opts->crit_flat;
|
||||
@@ -4010,7 +4022,7 @@ void Mob::TryCriticalHit(Mob *defender, uint16 skill, int32 &damage, ExtraAttack
|
||||
Log.Out(
|
||||
Logs::General,
|
||||
Logs::Combat,
|
||||
"[%s] [Mob::TryCriticalHit] CritChance [%i]",
|
||||
"[%s] [Mob::TryCriticalHit] CritChance [%.2f]",
|
||||
GetCleanName(),
|
||||
critChance
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user