|
|
/*
|
|
|
*
|
|
|
@author: sre
|
|
|
@date: 2022/11/6 0006
|
|
|
@desc: todo
|
|
|
*
|
|
|
*/
|
|
|
package main
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
func DesirBloodBackSTackDmg(dmg, crit float64) float64 {
|
|
|
//恶意 致命偷袭 增加了 5% 30% 的暴击伤害
|
|
|
|
|
|
crit = crit + 5
|
|
|
critDmg := 2 + 0.3
|
|
|
//谋杀增加了2%的所有伤害
|
|
|
if crit > 100 {
|
|
|
crit = 100
|
|
|
}
|
|
|
baseDmg := (100-crit)/100*dmg + crit/100*dmg*critDmg
|
|
|
return baseDmg * 1.02
|
|
|
|
|
|
}
|
|
|
|
|
|
// bloodDmg出血DPH
|
|
|
func bloodDmg(dps, speed, ap float64) float64 {
|
|
|
//https://www.gamersky.com/neta/200701/53511.shtml
|
|
|
//剑普攻或出血DPH公式:(强度/14+武器DPS)*武器速度=(1000/14+59)*2.9≈380
|
|
|
return speed * (dps + ap/14)
|
|
|
}
|
|
|
func bloodDPH(myAP, myCrit float64) {
|
|
|
|
|
|
//大王剑
|
|
|
fmt.Println("大王剑 ", DesirBloodBackSTackDmg(bloodDmg(73.1, 2.7, myAP+40), myCrit))
|
|
|
//大元帅
|
|
|
fmt.Println("大元帅 ", DesirBloodBackSTackDmg(bloodDmg(59.5, 2.9, myAP+28), myCrit+1))
|
|
|
//电锤
|
|
|
fmt.Println("电锤 ", DesirBloodBackSTackDmg(bloodDmg(65.4, 2.8, myAP), myCrit))
|
|
|
//咸鱼
|
|
|
fmt.Println("咸鱼 ", DesirBloodBackSTackDmg(bloodDmg(59.5, 2.8, myAP+20), myCrit+1))
|
|
|
//谴责着
|
|
|
fmt.Println("谴责着 ", DesirBloodBackSTackDmg(bloodDmg(65.4, 2.6, myAP+16), myCrit+1))
|
|
|
|
|
|
//多彩
|
|
|
fmt.Println("多彩 ", DesirBloodBackSTackDmg(bloodDmg(58.5, 2.6, myAP+28), myCrit+0.5))
|
|
|
//提布
|
|
|
fmt.Println("提布 ", DesirBloodBackSTackDmg(bloodDmg(47.2, 2.9, myAP), myCrit))
|
|
|
|
|
|
}
|