mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-24 04:22:29 +08:00
fix: 调整Chick角色攻击方式的随机选择逻辑,增加钻石攻击的概率
This commit is contained in:
@@ -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([0, 3, 0]) # 0: 钻石, 1: 激光, 2: 喷火, 3: 冲刺,这里随机到钻石的概率比冲刺大一倍
|
var method = MathTool.randc_from([0, 0, 0, 0, 3])
|
||||||
tryAttack(method, method == 3)
|
tryAttack(method, method == 3)
|
||||||
func attack(type):
|
func attack(type):
|
||||||
if type == 0:
|
if type == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user