mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-08 02:57:06 +08:00
fix(Characters/Dog): 调整狗的攻击冷却时间和攻击方式
减少狗的攻击冷却时间范围并简化攻击逻辑,移除多子弹发射的等待时间,使战斗节奏更快
This commit is contained in:
@@ -4,7 +4,7 @@ func register():
|
|||||||
fields[FieldStore.Entity.MAX_HEALTH] = 120
|
fields[FieldStore.Entity.MAX_HEALTH] = 120
|
||||||
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.2
|
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.2
|
||||||
fields[FieldStore.Entity.OFFSET_SHOOT] = 0
|
fields[FieldStore.Entity.OFFSET_SHOOT] = 0
|
||||||
attackCooldownMap[0] = randi_range(3000, 5000)
|
attackCooldownMap[0] = randi_range(100, 500)
|
||||||
func spawn():
|
func spawn():
|
||||||
texture.play("walk")
|
texture.play("walk")
|
||||||
func ai():
|
func ai():
|
||||||
@@ -14,7 +14,5 @@ func attack(type):
|
|||||||
if type == 0:
|
if type == 0:
|
||||||
var weaponPos = findWeaponAnchor("normal")
|
var weaponPos = findWeaponAnchor("normal")
|
||||||
var angle = weaponPos.angle_to_point(currentFocusedBoss.position)
|
var angle = weaponPos.angle_to_point(currentFocusedBoss.position)
|
||||||
for i in 3:
|
|
||||||
BulletBase.generate(ComponentManager.getBullet("DogCircle"), self , weaponPos, angle)
|
BulletBase.generate(ComponentManager.getBullet("DogCircle"), self , weaponPos, angle)
|
||||||
await TickTool.millseconds(100)
|
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user