1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/Wuwei.gd
T
fallingshrimp 7e90bd1c1c feat(武器): 新增道教石像武器及其相关效果
实现道教石像武器,包含以下功能:
- 添加天地之剑攻击逻辑,根据攻击速度、生命值和气层数计算伤害
- 新增无量斩子弹类型和特效
- 为公鸡角色添加新武器配置
- 更新相关动画和音效资源
2026-04-03 18:29:14 +08:00

23 lines
561 B
GDScript

extends BulletBase
class_name WuweiBullet
@export var canMove: bool = true
func ai():
if canMove:
PresetBulletAI.lockLauncher(self , launcher, true)
look_at(get_global_mouse_position())
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()