You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
610 B

This file contains ambiguous Unicode characters!

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
}