1
This commit is contained in:
parent
ea4b4092ca
commit
c9b06f80b2
@ -521,9 +521,7 @@ float BattleDataContext::CalcDmg(Creature* target, IBullet* bullet)
|
|||||||
|
|
||||||
float total_atk = GetTotalAtk(bullet);
|
float total_atk = GetTotalAtk(bullet);
|
||||||
float normal_dmg = total_atk * (1 - target->GetBattleContext()->GetDef() / 1000);
|
float normal_dmg = total_atk * (1 - target->GetBattleContext()->GetDef() / 1000);
|
||||||
if (bullet->GetStrengthenWall()) {
|
normal_dmg *= 1 + bullet->GetStrengthenWall();
|
||||||
normal_dmg *= 1.2f;
|
|
||||||
}
|
|
||||||
float crit = g_calc_dmg_context.is_crit ? GetCritRate(bullet) : 0;
|
float crit = g_calc_dmg_context.is_crit ? GetCritRate(bullet) : 0;
|
||||||
float dodge = IsDodge(bullet) ? GetDodgeRuduce(bullet) : 0;
|
float dodge = IsDodge(bullet) ? GetDodgeRuduce(bullet) : 0;
|
||||||
float finaly_dmg = normal_dmg * (1.0f + crit + dodge);
|
float finaly_dmg = normal_dmg * (1.0f + crit + dodge);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user