From 7c78deaa7bb7c0f5aa92c4687370aad4536bbde5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Fri, 8 May 2026 19:02:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(Characters/Dog):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=8B=97=E7=9A=84=E6=94=BB=E5=87=BB=E5=86=B7=E5=8D=B4=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=92=8C=E6=94=BB=E5=87=BB=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 减少狗的攻击冷却时间范围并简化攻击逻辑,移除多子弹发射的等待时间,使战斗节奏更快 --- scripts/Contents/Characters/Dog.gd | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/Contents/Characters/Dog.gd b/scripts/Contents/Characters/Dog.gd index adefa8b..76103a3 100644 --- a/scripts/Contents/Characters/Dog.gd +++ b/scripts/Contents/Characters/Dog.gd @@ -4,17 +4,15 @@ func register(): fields[FieldStore.Entity.MAX_HEALTH] = 120 fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.2 fields[FieldStore.Entity.OFFSET_SHOOT] = 0 - attackCooldownMap[0] = randi_range(3000, 5000) + attackCooldownMap[0] = randi_range(100, 500) func spawn(): texture.play("walk") func ai(): - PresetEntityAI.follow(self, currentFocusedBoss, 300) + PresetEntityAI.follow(self , currentFocusedBoss, 300) tryAttack(0) func attack(type): if type == 0: var weaponPos = findWeaponAnchor("normal") var angle = weaponPos.angle_to_point(currentFocusedBoss.position) - for i in 3: - BulletBase.generate(ComponentManager.getBullet("DogCircle"), self, weaponPos, angle) - await TickTool.millseconds(100) + BulletBase.generate(ComponentManager.getBullet("DogCircle"), self , weaponPos, angle) return true