From 7c215033eceef80e291a18bf1d4c4980d6980373 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, 17 Jan 2026 12:35:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=AD=90=E5=BC=B9):=20=E4=B8=BAVectorStar?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=86=E8=A3=82=E9=80=BB=E8=BE=91=E5=B9=B6?= =?UTF-8?q?=E9=87=8D=E6=9E=84ArrowSeven?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为VectorStar子弹添加分裂时的特殊处理逻辑,确保分裂出的新子弹不会被标记为forwarded 将ArrowSeven子弹重命名为ArrowSevenBullet以明确类名,并移除多余空行 --- scripts/Contents/Bullets/BossAttack/Bear/ArrowSeven.gd | 4 +--- scripts/Contents/Bullets/VectorStar.gd | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/Contents/Bullets/BossAttack/Bear/ArrowSeven.gd b/scripts/Contents/Bullets/BossAttack/Bear/ArrowSeven.gd index 5ca22cc..285c222 100644 --- a/scripts/Contents/Bullets/BossAttack/Bear/ArrowSeven.gd +++ b/scripts/Contents/Bullets/BossAttack/Bear/ArrowSeven.gd @@ -1,4 +1,5 @@ extends BulletBase +class_name ArrowSevenBullet @export var allColor: GradientTexture1D = null @@ -16,8 +17,6 @@ func spawn(): superlight.material = superlight.material.duplicate() trail.process_material = trail.process_material.duplicate() setColor(myColor) - - func ai(): superlight.global_rotation_degrees = 90 PresetBulletAI.forward(self, rotation) @@ -31,7 +30,6 @@ func ai(): else: forwarded = true - func setColor(color: Color): texture.self_modulate = color var mat: ParticleProcessMaterial = trail.process_material diff --git a/scripts/Contents/Bullets/VectorStar.gd b/scripts/Contents/Bullets/VectorStar.gd index bf76832..70508ad 100644 --- a/scripts/Contents/Bullets/VectorStar.gd +++ b/scripts/Contents/Bullets/VectorStar.gd @@ -16,3 +16,6 @@ func ai(): speed = (timeLived() - forwardTime) / 30 if is_instance_valid(tracer): rotation = position.angle_to_point(tracer.getTrackingAnchor()) +func split(newBullet: BulletBase, _index: int, _total: int, _lastBullet: float): + if newBullet is VectorStar: + newBullet.forwarded = false