feat(@projects/@magic-civilization): ✨ add debug logging for per-player overrides
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
5e0f482b46
commit
39922d0dab
1 changed files with 4 additions and 0 deletions
|
|
@ -799,6 +799,10 @@ func _apply_per_player_difficulty_overrides() -> void:
|
|||
# DataLoader.get_data("difficulty") returns {"easy": {full entry}, "normal": {...}, ...}
|
||||
# already keyed by id — no wrapping "ai_difficulty" array at this level.
|
||||
var diff_data: Dictionary = DataLoader.get_data("difficulty")
|
||||
print("AutoPlay: per_player_override entry: diff_data.size=%d P0='%s' P1='%s'" % [
|
||||
diff_data.size(),
|
||||
EnvConfig.get_var("AI_DIFFICULTY_P0", "__unset__"),
|
||||
EnvConfig.get_var("AI_DIFFICULTY_P1", "__unset__")])
|
||||
if diff_data == null or diff_data.is_empty():
|
||||
return
|
||||
# Use a fixed upper bound — this runs before loading_screen.gd populates
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue