Fix ConfigLoader convenience getters to support sectioned lookups#268
Conversation
- Updated ConfigLoader.getInt(), getFloat(), and getString() to support overloaded (section, key, fallback) and (key, fallback) signatures. - Implemented robust argument disambiguation and heuristic-based section detection for getString to maintain safety during early initialization. - Updated AutoloadHelper static methods to expose the new multi-signature API. - Updated multiple call sites (combat_formula, entity_lifecycle, elemental_resolver, burden_manager, run_manager) to use explicit sectioned lookups. - Verified fix with dedicated API tests and full project test suite. Co-authored-by: niyazmft <9331133+niyazmft@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Updated ConfigLoader.getInt(), getFloat(), and getString() to support overloaded (section, key, fallback) and (key, fallback) signatures. - Implemented robust argument disambiguation and heuristic-based section detection for getString to maintain safety during early initialization. - Updated AutoloadHelper static methods to expose the new multi-signature API. - Updated multiple call sites (combat_formula, entity_lifecycle, elemental_resolver, burden_manager, run_manager) to use explicit sectioned lookups. - Removed redundant local config helpers in entity_lifecycle.gd and elemental_resolver.gd. - Cleaned up orphaned .uid files and reformatted code to pass CI. - Verified fix with dedicated API tests and full project test suite. Co-authored-by: niyazmft <9331133+niyazmft@users.noreply.github.com>
The ConfigLoader convenience getters (getInt, getFloat, getString) were previously limited to a flat lookup, ignoring the sectioned structure of the JSON configuration. This caused many config reads to silently fall back to hard-coded defaults even when values were present in the JSON sections.
This change:
Fixes #245
PR created automatically by Jules for task 6826570002351841991 started by @niyazmft