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

feat(VectorStar): 添加子弹折射功能

为 VectorStar 子弹类型添加 refract 方法,处理子弹折射时的行为,与 split 方法保持一致的逻辑
This commit is contained in:
2026-01-17 12:36:22 +08:00
parent 7c215033ec
commit 8088723333
+3
View File
@@ -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