1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-07-13 05:22:53 +08:00

fix(Chick): 调整攻击方法随机概率权重

将冲刺攻击的概率提高,使其与钻石攻击概率相同
This commit is contained in:
2025-08-29 14:12:02 +08:00
parent 90a090135b
commit 72b83b909a
+1 -1
View File
@@ -23,7 +23,7 @@ func ai():
elif currentFocusedBoss.position.distance_to(position) < 700: elif currentFocusedBoss.position.distance_to(position) < 700:
tryAttack(1) tryAttack(1)
else: else:
var method = MathTool.randc_from([3, 0, 0]) # 0: 钻石, 1: 激光, 2: 喷火, 3: 冲刺,这里随机到钻石的概率比冲刺大一倍 var method = MathTool.randc_from([0, 3, 0]) # 0: 钻石, 1: 激光, 2: 喷火, 3: 冲刺,这里随机到钻石的概率比冲刺大一倍
tryAttack(method, method == 3) tryAttack(method, method == 3)
func attack(type): func attack(type):
if type == 0: if type == 0: