From 3ccba08a2855926757b1b3dd08e653c114316324 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 21:27:29 +0000 Subject: [PATCH] fix(combat): add missing ability_min/max keys to ConfigLoader DEFAULTS Added "ability_min" and "ability_max" to the DEFAULTS dictionary in scripts/autoload/config_loader.gd. This ensures that the CombatFormula.action_cost() lookups have valid fallback values and comply with the ConfigLoader's requirement that all valid keys be present in the DEFAULTS dictionary. These values (3 and 5) match the constants defined in scripts/core/constants.gd and the current config/game_config.json. Fixes issue #245. Co-authored-by: niyazmft <9331133+niyazmft@users.noreply.github.com> --- scripts/autoload/config_loader.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/autoload/config_loader.gd b/scripts/autoload/config_loader.gd index fab094d..132ab94 100644 --- a/scripts/autoload/config_loader.gd +++ b/scripts/autoload/config_loader.gd @@ -34,6 +34,8 @@ const HOTBAR_BINDINGS_PATH := "res://config/hotbar_bindings.json" const DEFAULTS: Dictionary = { "AP_MAX": 6, "AP_REGEN": 2, + "ability_min": 3, + "ability_max": 5, "D_BASE": 10, "CRIT_MULT": 1.5, "MIN_DAMAGE": 1,