mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-12 13:02:53 +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([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:
|
||||||
|
|||||||
Reference in New Issue
Block a user