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.
37 lines
995 B
37 lines
995 B
/*
|
|
*
|
|
@author: sre
|
|
@date: 2022/11/6 0006
|
|
@desc: todo
|
|
*
|
|
*/
|
|
package main
|
|
|
|
import "fmt"
|
|
|
|
//关于盗贼伏击暴击伤害计算公式
|
|
//https://ngabbs.com/read.php?tid=20736838
|
|
//https://ngabbs.com/read.php?tid=19912134
|
|
|
|
//暴击伤害=({(AP*1.7/14+DPH)*150%+210}*1.2)2.3
|
|
|
|
// backStackDmg伏击DPH
|
|
func amBushDmg(dps, speed, ap float64) float64 {
|
|
//背刺伤害={(AP*1.7/14+DPH)*150%+210}
|
|
return 290.0 + 2.5*(ap*1.7/14+dps*speed)
|
|
}
|
|
|
|
func amBushDPH(myAP, myCrit float64) {
|
|
//帝陨
|
|
fmt.Println("帝陨 ", DesirBloodBackSTackDmg(amBushDmg(73.1, 1.8, myAP+16), myCrit+1))
|
|
//死亡之钉
|
|
fmt.Println("死亡之钉 ", DesirBloodBackSTackDmg(amBushDmg(66.4, 1.8, myAP+38), myCrit))
|
|
//麦芽
|
|
fmt.Println("麦芽 ", DesirBloodBackSTackDmg(amBushDmg(65.3, 1.8, myAP+36), myCrit+1))
|
|
//末日先驱
|
|
fmt.Println("末日先驱 ", DesirBloodBackSTackDmg(amBushDmg(65.3, 1.6, myAP+8), myCrit+1))
|
|
//大元帅
|
|
fmt.Println("大元帅 ", DesirBloodBackSTackDmg(amBushDmg(59.5, 2.0, myAP+28), myCrit+1))
|
|
|
|
}
|