1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat(MTY): 增强MTY角色的攻击能力

- 将"猛冲"技能更名为"撕咬"并增加生命周期
- 为MTY添加新的攻击类型和冷却时间
- 调整MTY在普通波次中的生成参数
This commit is contained in:
2025-12-14 15:29:44 +08:00
parent 1886099d23
commit 0571400cb2
3 changed files with 7 additions and 4 deletions
+4 -2
View File
@@ -5,15 +5,17 @@ func register():
fields[FieldStore.Entity.MAX_HEALTH] = 400
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.9
attackCooldownMap[0] = 1500
attackCooldownMap[1] = 500
sprintMultiplier = 5
func spawn():
BulletBase.generate(ComponentManager.getBullet("MTYSprint"), self, position, 0)
func ai():
PresetEntityAI.follow(self, currentFocusedBoss)
tryAttack(0)
tryAttack(1)
func attack(type: int):
if type == 0:
trySprint()
elif type == 1:
BulletBase.generate(ComponentManager.getBullet("MTYSprint"), self, position, 0)
return true
func sprint():
var target = BulletTool.findClosetBulletCanDamage(position, get_tree(), self)