From 8088723333b2657a3ee5398304734a735de6aaea 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:36:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(VectorStar):=20=E6=B7=BB=E5=8A=A0=E5=AD=90?= =?UTF-8?q?=E5=BC=B9=E6=8A=98=E5=B0=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为 VectorStar 子弹类型添加 refract 方法,处理子弹折射时的行为,与 split 方法保持一致的逻辑 --- scripts/Contents/Bullets/VectorStar.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/Contents/Bullets/VectorStar.gd b/scripts/Contents/Bullets/VectorStar.gd index 70508ad..c2bc497 100644 --- a/scripts/Contents/Bullets/VectorStar.gd +++ b/scripts/Contents/Bullets/VectorStar.gd @@ -19,3 +19,6 @@ func ai(): func split(newBullet: BulletBase, _index: int, _total: int, _lastBullet: float): if newBullet is VectorStar: newBullet.forwarded = false +func refract(newBullet: BulletBase, _entity: EntityBase, _index: int, _total: int, _lastBullet: float): + if newBullet is VectorStar: + newBullet.forwarded = false