diff options
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -19,7 +19,6 @@ Config options: ```yaml game: tick_length: 600 # ms per game tick (default 600, min 50) - game_speed: 1.0 # multiplier for all tick timers (default 1.0) ``` Dependencies: `gopkg.in/yaml.v3`, `github.com/gorilla/websocket`. @@ -70,7 +69,7 @@ internal/engine/ Tick scheduler — 600ms interval, subscriber pattern + **Tick-driven.** The world runs on a 600ms tick. Combat, gathering, regen, wandering, respawns, shared depletion, woodcutting timers all advance per tick. See `cmd/mud/main.go` for the subscription loop. -**Fractional ticks.** All YAML timer fields (tool_speed, speed, base_wait, deplete_timer, etc.) accept `float64` values. `engine.FractionalTicks(base, speed)` probabilistically rounds to an integer — a tool_speed of 4.5 means each action cycle has a 50% chance of 4 ticks and 50% of 5 ticks. The `game_speed` config option scales all timers uniformly via `g.computeTicks()`. +**Fractional ticks.** All YAML timer fields (tool_speed, speed, base_wait, deplete_timer, etc.) accept `float64` values. `engine.ToTicks(base)` probabilistically rounds to an integer — a tool_speed of 4.5 means each action cycle has a 50% chance of 4 ticks and 50% of 5 ticks. ## Two State Systems |
