added item probability

This commit is contained in:
2026-10-24 20:32:37 +02:00
parent 1996b9c83e
commit 471dc33f0e
132 changed files with 99 additions and 36 deletions
Regular → Executable
+2 -1
View File
@@ -95,11 +95,12 @@ All numbers are in `ActionBlocks.Game/GameSettings.cs`. There are two ways to ch
```yaml
actionblocks-server:
environment:
Game__ItemSpawnChance: "0.15"
Game__MaxInventory: "6"
Game__LockDelaySeconds: "0.6"
```
The item chance already has its own variable: set `ITEM_SPAWN_CHANCE` in `.env` (the compose file passes it as `Game__ItemSpawnChance`).
To add a **new** setting, add an `init` property with a default to `GameSettings` and read it where needed. Configuration binding picks it up automatically.
If you change the board width or height, the website adapts automatically, because `MatchState.width`/`height` drive the rendering.