1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 23:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/Diamond2.gd
T
fallingshrimp 698b5a5618 fix(Bullets/Diamond2): 修复钻石子弹动画和碰撞问题
调整钻石子弹的静态精灵位置和缩放,添加碰撞形状
修复当父节点无效时动画停止逻辑
```

```msg
feat(Weapons/BlueCrystal): 调整蓝水晶武器属性

增加子弹环绕数量计算公式
降低基础攻击力并增加冷却时间
更新描述文本移除逃逸时间说明
2025-12-13 08:24:45 +08:00

13 lines
284 B
GDScript

extends BulletBase
class_name Diamond2Bullet
@onready var staticSprite: Sprite2D = $%static
func ai():
if is_instance_valid(parent):
position = parent.position
else:
if animator.is_playing():
animator.stop(true)
PresetBulletAI.forward(self, staticSprite.global_rotation)