fix(boss): HUD 阶段提示改 tr(STATUS_BOSS_PHASE)+4语言 .po;register_boss 未知 boss_type push_error

This commit is contained in:
2026-07-23 11:07:52 +08:00
parent f8efdc639d
commit 95e5587049
6 changed files with 15 additions and 1 deletions
+2
View File
@@ -28,6 +28,8 @@ func _load_defs() -> void:
## wave_manager._spawn_boss 生成 SoA Boss 后调用
func register_boss(boss_id: int, boss_type: int, max_hp: float, wave: int) -> void:
if not _defs.has(boss_type):
push_error("BossManager: bosses.json 缺少 boss_type=%d 的配置(该 Boss 将无阶段/招式)" % boss_type)
var def: Dictionary = _defs.get(boss_type, {})
var phases: Array = def.get("phases", [])
_active[boss_id] = {