From 6e737c908dbf8b438dd301fd9f2b85a334fdb022 Mon Sep 17 00:00:00 2001 From: mlangkabel Date: Fri, 17 Apr 2026 22:13:21 +0200 Subject: [PATCH] rename variables in formula requirements --- docs/requirements.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/requirements.md b/docs/requirements.md index 73fd9e9..8068d25 100644 --- a/docs/requirements.md +++ b/docs/requirements.md @@ -102,10 +102,10 @@ Config files use the TOML format. The following config files drive game paramete ## Threat Level & Enemy Waves -- REQ-WAV-THREAT-RATE: A global **threat level** accumulates continuously over time. The rate of increase per second is determined by a formula read from world.toml where the input is elapsed game time in seconds. Example: `1*t - 30` gives 0 threat/s at t=30s and increases linearly after that. +- REQ-WAV-THREAT-RATE: A global **threat level** accumulates continuously over time. The rate of increase per second is determined by a formula read from world.toml where x is elapsed game time in seconds. Example: `1*x - 30` gives 0 threat/s at x=30s and increases linearly after that. - REQ-WAV-GAP: At game start and immediately after each wave is triggered, a random inter-wave gap is drawn uniformly from a configurable [min, max] range (world.toml, in seconds). - REQ-WAV-TRIGGER: When the gap expires, a wave is triggered. Ships are spawned using the accumulated threat level. Any threat not spent on ships carries over to the next wave. A longer gap results in a larger wave. -- REQ-WAV-SHIP-LEVEL: Each wave's enemy ships are assigned a level determined by a formula of elapsed game time in seconds (t), read from world.toml. This is the sole mechanism by which enemy waves grow stronger over time. +- REQ-WAV-SHIP-LEVEL: Each wave's enemy ships are assigned a level determined by a formula of elapsed game time in seconds (x), read from world.toml. This is the sole mechanism by which enemy waves grow stronger over time. - REQ-WAV-THREAT-COST: Ships are spawned until the accumulated threat is exhausted. Each ship type has a threat cost defined as a formula of ship level in ships.toml. Because enemy ship level increases with time, threat cost per ship rises naturally over the course of the game. - REQ-WAV-SPAWN-DURATION: Ships in a wave are spawned one at a time over the spawn duration. Spawning duration is read from world.toml. - REQ-WAV-SHIP-STATS: Per-ship stats (damage, attack rate, range, speed) and threat cost are each defined as formulas of ship level in ships.toml.