From b402f04adaae1d63ab93cdd440c39903de77e27a 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: Sat, 22 Nov 2025 08:04:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=AD=90=E5=BC=B9):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=8B=90=E7=8B=B8=E7=88=AA=E5=AD=90=E5=BC=B9=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=92=8C=E5=88=9D=E5=A7=8B=E6=B3=A2=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为狐狸爪子弹添加速度、自伤和无敌伤害属性,并将初始波数调整为10 修改追踪逻辑使用新定义的速度属性 --- components/Bullets/FoxZhua.tscn | 3 +++ scripts/Contents/Bullets/FoxZhua.gd | 2 +- scripts/Contents/Wave.gd | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/Bullets/FoxZhua.tscn b/components/Bullets/FoxZhua.tscn index 6645bb9..a8924c5 100644 --- a/components/Bullets/FoxZhua.tscn +++ b/components/Bullets/FoxZhua.tscn @@ -196,7 +196,10 @@ height = 290.0 script = ExtResource("2_rl21b") canTrace = true displayName = "爪" +speed = 0.07 penerate = 1.0 +indisDamage = true +canDamageSelf = true autoSpawnAnimation = true freeAfterSpawn = true diff --git a/scripts/Contents/Bullets/FoxZhua.gd b/scripts/Contents/Bullets/FoxZhua.gd index 074038e..5b436cb 100644 --- a/scripts/Contents/Bullets/FoxZhua.gd +++ b/scripts/Contents/Bullets/FoxZhua.gd @@ -5,4 +5,4 @@ class_name FoxZhua func ai(): if canTrace: - PresetBulletAI.lerpPosition(self, launcher.currentFocusedBoss.getTrackingAnchor() - Vector2(0, 200), 0.07) + PresetBulletAI.lerpPosition(self, launcher.currentFocusedBoss.getTrackingAnchor() - Vector2(0, 200), speed) \ No newline at end of file diff --git a/scripts/Contents/Wave.gd b/scripts/Contents/Wave.gd index 70a7c25..dbcecb3 100644 --- a/scripts/Contents/Wave.gd +++ b/scripts/Contents/Wave.gd @@ -22,7 +22,7 @@ func duplicate() -> Wave: wave.per = per return wave -static var current: int = startWith(1) +static var current: int = startWith(10) static var WAVE_NORMAL = [ Wave.create("Hen", 1, 3, false, 0, INF, 1), Wave.create("Cat", 1, 3, false, 0, INF, 1),