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.
138 lines
2.9 KiB
138 lines
2.9 KiB
/*
|
|
*
|
|
@author: sre
|
|
@date: 2022/11/6 0006
|
|
@desc: todo
|
|
*
|
|
*/
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// evilDmg邪恶攻击
|
|
func evilDmg(dps, speed, ap float64) float64 {
|
|
speed = 2.4
|
|
return speed * (dps + ap/14)
|
|
|
|
}
|
|
|
|
func DesirAttackDmg(dmg, crit float64) float64 {
|
|
//恶意 增加了 5% 的暴击
|
|
|
|
crit = crit + 5
|
|
critDmg := 2.0
|
|
//谋杀增加了2%的所有伤害
|
|
if crit > 100 {
|
|
crit = 100
|
|
}
|
|
baseDmg := (100-crit)/100*dmg + crit/100*dmg*critDmg
|
|
return baseDmg * 1.02
|
|
|
|
}
|
|
|
|
func main() {
|
|
|
|
fmt.Println("4t3 =========================================")
|
|
dmg4t3()
|
|
fmt.Println("9t3 blood=============================================")
|
|
dmg9t3()
|
|
fmt.Println("9t3 dagger=============================================")
|
|
dmg9t3Drager()
|
|
|
|
}
|
|
func dmg4t3() {
|
|
// 5t2.5 4t3 萨迪斯的项圈 堕落神明披风 灵魂之弦 清算戒指 冰龙爪
|
|
// 护甲2213防御300 未命中5% 闪避18.85%招架5%
|
|
// ap 846
|
|
// crit 28.85
|
|
// hit 7%
|
|
|
|
myAP := 846.0
|
|
myCrit := 28.85
|
|
fmt.Println("剔骨最大DPH")
|
|
boneDPH(myAP, 100.0)
|
|
|
|
fmt.Println("出血DPH")
|
|
bloodDPH(myAP, myCrit)
|
|
|
|
fmt.Println("平砍DPH")
|
|
attackDPH(myAP, myCrit)
|
|
|
|
//fmt.Println("出血最大DPH")
|
|
//bloodDPH(myAP, 100.0)
|
|
//fmt.Println("剔骨DPH")
|
|
//boneDPH(myAP, myCrit)
|
|
//
|
|
//fmt.Println("邪恶DPH")
|
|
//evilDPH()
|
|
|
|
}
|
|
func dmg9t3Drager() {
|
|
// 9t3 萨迪斯的项圈 堕落神明披风 灵魂之弦 清算戒指 冰龙爪
|
|
// 护甲2236防御300 未命中5% 闪避24.62%招架5%
|
|
// ap 951
|
|
// crit 26.31
|
|
// hit 8%
|
|
myAP := 951.0
|
|
myCrit := 26.31
|
|
fmt.Println("背刺最大DPH")
|
|
bckStackDPH(myAP, 100.0)
|
|
|
|
fmt.Println("背刺DPH")
|
|
bckStackDPH(myAP, myCrit)
|
|
|
|
fmt.Println("伏击最大DPH")
|
|
amBushDPH(myAP, 100.0)
|
|
|
|
fmt.Println("伏击DPH")
|
|
amBushDPH(myAP, myCrit)
|
|
|
|
}
|
|
|
|
func dmg9t3() {
|
|
// 9t3 萨迪斯的项圈 堕落神明披风 灵魂之弦 清算戒指 冰龙爪
|
|
// 护甲2236防御300 未命中5% 闪避24.62%招架5%
|
|
// ap 951
|
|
// crit 26.31
|
|
// hit 8%
|
|
myAP := 951.0
|
|
myCrit := 26.31
|
|
fmt.Println("剔骨最大DPH")
|
|
boneDPH(myAP, 100.0)
|
|
|
|
fmt.Println("出血DPH")
|
|
bloodDPH(myAP, myCrit)
|
|
fmt.Println("出血最大DPH")
|
|
bloodDPH(myAP, 100.0)
|
|
|
|
fmt.Println("平砍DPH")
|
|
attackDPH(myAP, myCrit)
|
|
//fmt.Println("出血最大DPH")
|
|
//bloodDPH(myAP, 100.0)
|
|
//fmt.Println("剔骨DPH")
|
|
//boneDPH(myAP, myCrit)
|
|
//
|
|
//fmt.Println("邪恶DPH")
|
|
//evilDPH()
|
|
|
|
}
|
|
|
|
func attackDPH(myAP, myCrit float64) {
|
|
|
|
//大王剑
|
|
fmt.Println("大王剑 ", DesirAttackDmg(evilDmg(73.1, 2.7, myAP+40), myCrit))
|
|
//大元帅
|
|
fmt.Println("大元帅 ", DesirAttackDmg(evilDmg(59.5, 2.9, myAP+28), myCrit+1))
|
|
//电锤
|
|
fmt.Println("电锤 ", DesirAttackDmg(evilDmg(65.4, 2.8, myAP), myCrit))
|
|
//咸鱼
|
|
fmt.Println("咸鱼 ", DesirAttackDmg(evilDmg(59.5, 2.8, myAP+20), myCrit+1))
|
|
//谴责着
|
|
fmt.Println("谴责着 ", DesirAttackDmg(evilDmg(65.4, 2.6, myAP+16), myCrit+1))
|
|
//多彩
|
|
fmt.Println("多彩 ", DesirAttackDmg(evilDmg(58.5, 2.6, myAP+28), myCrit+0.5))
|
|
|
|
}
|