From 1b218941bd312ce2134e717db5285421428c60f6 Mon Sep 17 00:00:00 2001 From: mlangkabel Date: Wed, 22 Apr 2026 21:55:53 +0200 Subject: [PATCH] add requirement for config reload on restart --- docs/requirements.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/requirements.md b/docs/requirements.md index cd15834..632562a 100644 --- a/docs/requirements.md +++ b/docs/requirements.md @@ -11,6 +11,8 @@ Config files use the TOML format. The following config files drive game paramete - **stations.toml** — HP, damage, range, fire rate, and scrap drop for player and enemy defence stations, defined as formulas of station level. - **visuals.toml** — rendering-only config (not game parameters): fill and outline colors and glyphs for every building type, item type, ship role, and station type; beam color and width; overlay and toast colors. Loaded by the UI at startup; the simulation does not read it. +- REQ-CFG-RELOAD: When the player triggers a Restart (REQ-UI-GAME-MENU), all config files are reloaded from disk before the simulation is reset to its initial state. Formula strings are recompiled at that point. This allows config edits made while the application is running to take effect without a full application restart. + ### Surface Mask Format Buildings in buildings.toml define a `surface_mask` — a list of strings that describes the building's tile footprint and output port(s). Each character occupies one cell in the grid: