double dominantAtk = 1 - (WarriorFormulas.calculateDefence(victim, attacker) + 2) / (2 * (WarriorFormulas.calculateAttack(attacker,victim) + 1));
double dominantDef = (MeleeFormulas.calculateAttack(attacker, victim) / (2 * (MeleeFormulas.calculateDefence(victim, attacker) + 1)));
calculateDefence和calculateAttack都返回高位数,无论数字是多少,它总是会产生1.0或0.0。
计算本身。
更高的攻击检定: 精度= 1 - (Def + 2)/ [2 *(Atk + 1)]
在更高的Def卷上: 准确度=(Atk)/ [2 *(Def + 1)]