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/Volcano.gd
T
fallingshrimp 23e19bb0b5 feat(武器): 添加火山阴影子弹并调整火山武器属性
新增火山阴影子弹类型,优化火山武器的攻击效果和动画
调整火山武器的伤害、冷却时间和旋转属性
移除多余的生命值属性,简化武器逻辑
优化狐狸爪子弹的追踪速度和碰撞体积
删除公鸡角色的多余武器配置
2025-11-22 08:01:31 +08:00

29 lines
665 B
GDScript

extends BulletBase
class_name Volcano
@onready var textureSword: Sprite2D = $%textureSword
@onready var anchor: Node2D = $%anchor
var rotates: float = 0
func register():
animator.speed_scale = launcher.fields.get(FieldStore.Entity.ATTACK_SPEED)
func ai():
PresetBulletAI.lockLauncher(self, launcher, true)
rotation = lerp_angle(
rotation,
position.angle_to_point(get_global_mouse_position()),
rotates
)
func generateShadow():
for i in BulletBase.generate(
ComponentManager.getBullet("VolcanoShadow"),
launcher,
textureSword.global_position,
anchor.global_rotation,
false, false, true, true
):
if i is VolcanoShadow:
i.damage = damage