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

feat(战斗系统): 调整KukeMC的攻击逻辑和紫水晶子弹

为KukeMC角色减少召唤子体数量但增加紫水晶子弹数量,优化战斗节奏
添加紫水晶子弹的显示名称
移除PurpleCrystal类名定义
在EntityBase中新增died信号
This commit is contained in:
2025-09-14 15:17:09 +08:00
parent 2b34a1d695
commit d473281e8a
5 changed files with 12 additions and 6 deletions
+2
View File
@@ -4,6 +4,7 @@ class_name EntityBase # 这是个抽象类
signal hit(damage: float, bullet: BulletBase, crit: bool)
signal healed(amount: float)
signal healthChanged(health: float)
signal died()
signal energyChanged(energy: float, dontChangeDirection: bool)
@@ -313,6 +314,7 @@ func tryDie(by: BulletBase = null):
UIState.setPanel("GameOver", [displayName, by.launcher.displayName, by.displayName])
EffectController.create(preload("res://components/Effects/DeadBlood.tscn"), texture.global_position).shot()
await die()
died.emit()
queue_free()
func tryHeal(count: float):
if inventory[ItemStore.ItemType.APPLE] > 0 and health < fields.get(FieldStore.Entity.MAX_HEALTH):