fix(boss): HUD 阶段提示改 tr(STATUS_BOSS_PHASE)+4语言 .po;register_boss 未知 boss_type push_error
This commit is contained in:
@@ -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] = {
|
||||
|
||||
Reference in New Issue
Block a user