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

fix: 调整Chick角色攻击方式的随机选择逻辑,增加钻石攻击的概率

This commit is contained in:
2025-09-06 18:35:50 +08:00
parent efe417fcc4
commit 6b66cef6cb
+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([0, 3, 0]) # 0: 钻石, 1: 激光, 2: 喷火, 3: 冲刺,这里随机到钻石的概率比冲刺大一倍
var method = MathTool.randc_from([0, 0, 0, 0, 3])
tryAttack(method, method == 3)
func attack(type):
if type == 0: