1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 07:21:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/Wuwei.gd
T
fallingshrimp 3791978230 feat(武器/子弹): 新增危险攻击星效果并优化无为子弹表现
添加危险攻击星特效资源及场景配置
调整无为子弹的追踪逻辑和动画效果
修改道像武器的伤害计算公式和冷却时间
移除角色中不再使用的紫水晶武器
2026-04-03 19:24:27 +08:00

23 lines
586 B
GDScript

extends BulletBase
class_name WuweiBullet
@export var canMove: bool = true
func ai():
if canMove:
PresetBulletAI.lockLauncher(self , launcher, true)
PresetBulletAI.trace(self , get_global_mouse_position(), 0.1)
func shoot():
for bullet in BulletBase.generate(
ComponentManager.getBullet("InfinitySword"),
launcher,
position + Vector2.from_angle(rotation) * 400,
rotation
):
if bullet is InfinitySwordBullet:
bullet.baseDamage = baseDamage
func beReady():
canMove = false
EffectController.create(ComponentManager.getEffect("Danger"), findAnchor("Spawn")).shot()