mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-30 15:22:30 +08:00
fix(EnergyBlock): 启用被注释的AI攻击逻辑
恢复被注释的AI攻击行为代码,使能量块能够执行完整的攻击策略
This commit is contained in:
@@ -17,11 +17,11 @@ func register():
|
|||||||
sprintMultiplier = 30
|
sprintMultiplier = 30
|
||||||
func ai():
|
func ai():
|
||||||
PresetEntityAI.distanceAttack(self , currentFocusedBoss, 0, 300, 0)
|
PresetEntityAI.distanceAttack(self , currentFocusedBoss, 0, 300, 0)
|
||||||
# PresetEntityAI.distanceAttack(self , currentFocusedBoss, 500, 1000, 1)
|
PresetEntityAI.distanceAttack(self , currentFocusedBoss, 500, 1000, 1)
|
||||||
# for i in 5:
|
for i in 5:
|
||||||
# tryAttack(i + 2, [3, 4])
|
tryAttack(i + 2, [3, 4])
|
||||||
# if 1 not in attackingStates:
|
if 1 not in attackingStates:
|
||||||
# PresetEntityAI.follow(self , currentFocusedBoss, 200)
|
PresetEntityAI.follow(self , currentFocusedBoss, 200)
|
||||||
func attack(type: int):
|
func attack(type: int):
|
||||||
if type == 0:
|
if type == 0:
|
||||||
for bullet in BulletBase.generate(ComponentManager.getBullet("SwingSword"), self , getTrackingAnchor(), getTrackingAnchor().angle_to_point(currentFocusedPosition)):
|
for bullet in BulletBase.generate(ComponentManager.getBullet("SwingSword"), self , getTrackingAnchor(), getTrackingAnchor().angle_to_point(currentFocusedPosition)):
|
||||||
|
|||||||
Reference in New Issue
Block a user