1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/PurpleCrystal.gd
T
fallingshrimp d473281e8a feat(战斗系统): 调整KukeMC的攻击逻辑和紫水晶子弹
为KukeMC角色减少召唤子体数量但增加紫水晶子弹数量,优化战斗节奏
添加紫水晶子弹的显示名称
移除PurpleCrystal类名定义
在EntityBase中新增died信号
2025-09-14 15:17:09 +08:00

27 lines
754 B
GDScript

extends BulletBase
func ai():
PresetBulletAI.forward(self, rotation)
func destroy(_beacuseMap: bool):
var eff = EffectController.create(preload("res://components/Effects/PurpleCrystalExplosion.tscn"), global_position)
eff.rotation = rotation
eff.shot()
func split(index, total, _last):
BulletBase.generate(
preload("res://components/Bullets/PurpleCrystal.tscn"),
launcher,
position,
rotation + deg_to_rad(360 / total * index),
true,
isChildRefract
)
func refract(entity, _index, _total, _last):
BulletBase.generate(
preload("res://components/Bullets/PurpleCrystal.tscn"),
launcher,
position,
position.angle_to_point(entity.position) if is_instance_valid(entity) else randf_range(0, deg_to_rad(360)),
isChildSplit,
true
)