This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
/*
*
@author: sre
@date: 2022/11/6 0006
@desc: todo
*/
package main
// armFilterRate 计算护甲后实际造成的伤害值
func armFilterRate(ac float64) float64 {
//https://www.jianshu.com/p/2719713ce86b
//护甲减免伤害公式
//DR=AC/(AC+85*LV+400)
//(DR:伤害减免 AC:护甲 LV:等级)
//锯齿利刃具体减多少甲
//https://nga.178.com/read.php?tid=22468306&rand=886
//3点天赋加满后使你每级忽略目标5点护甲,60级就可以忽略300点,这有什么不好理解的么~
ac = ac - 300
if ac < 0 {
ac = 0
}
defend := ac / (ac + 85*60 + 400)
return 1 - defend