1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-30 16:01:53 +08:00

fix(Chick): 调整攻击方法随机概率,增加钻石攻击几率

将冲刺攻击的概率降低,钻石攻击的概率提高一倍,使战斗行为更平衡
This commit is contained in:
2025-08-29 14:11:48 +08:00
parent 685c81e654
commit 90a090135b
+1 -1
View File
@@ -23,7 +23,7 @@ func ai():
elif currentFocusedBoss.position.distance_to(position) < 700:
tryAttack(1)
else:
var method = MathTool.randc_from([3, 3, 0, 3, 3])
var method = MathTool.randc_from([3, 0, 0]) # 0: 钻石, 1: 激光, 2: 喷火, 3: 冲刺,这里随机到钻石的概率比冲刺大一倍
tryAttack(method, method == 3)
func attack(type):
if type == 0: