Spawnables now contain configuration for CollectAction outcomes

This commit is contained in:
hz
2025-06-08 21:46:01 -05:00
parent 22eb487aaa
commit 2ed8aaffc6
6 changed files with 42 additions and 4 deletions
+13 -1
View File
@@ -7,4 +7,16 @@ dotnet publish -c Release
sudo systemctl restart gameapi.service
# Check logs
journalctl -u gameapi.service -b --no-pager --lines=100
journalctl -u gameapi.service -b --no-pager --lines=100
## Spawnables
Spawnables describe items that can appear in the world. Along with the
name and spawn rate, they now specify how the item behaves when a player
performs the required collect action.
- **CollectAction** – the action a player must perform.
- **CollectResults** – a list of possible outcomes when the collect action
succeeds. Each entry defines:
- **Result** – textual description of the outcome.
- **SuccessRate** – percentage chance (0-100) for that outcome.