1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat(子弹系统): 添加扫帚系列子弹及相关资源

添加扫帚子弹、扫帚炮和扫帚回旋镖三种新子弹类型
包含子弹脚本、音效、动画和特效资源
修改EnergyBlock实体以支持新子弹的攻击逻辑
更新子弹基类添加销毁信号
This commit is contained in:
2026-05-01 09:12:27 +08:00
parent bd2525a55e
commit 8acb08fd14
27 changed files with 1093 additions and 16 deletions
+3
View File
@@ -10,6 +10,8 @@ enum MotionType {
BREATH, # 吐息
}
signal destroied(becauseMap: bool)
@export var displayName: String = "未知子弹"
@export var speed: float = 10.0
@export var baseDamage: float = 10.0
@@ -188,6 +190,7 @@ func tryDestroy(becauseMap: bool = false):
if autoDestroyAnimation:
animator.play("destroy")
await animator.animation_finished
destroied.emit(becauseMap)
queue_free()
func trySplit():
if is_instance_valid(launcher) and canDuplicateSelf: