diff options
| author | historia <[not public]> | 2026-07-01 18:36:21 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-01 18:36:21 -0400 |
| commit | 78b522d57a9ebc691e075523910d7cdaa06b6493 (patch) | |
| tree | b2a68397e0cecc5abb56e5ae451c05a9435cc5fe /cmd/mud/main.go | |
| parent | e6b4cb9f5816c6ee239233bc85f74ee446a161c2 (diff) | |
| download | thehouseoficarus-78b522d57a9ebc691e075523910d7cdaa06b6493.tar.gz | |
feat: shop system removed from talk system, added per-item restock and variable pricing
Diffstat (limited to 'cmd/mud/main.go')
| -rw-r--r-- | cmd/mud/main.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/mud/main.go b/cmd/mud/main.go index 990164e..23a2ca4 100644 --- a/cmd/mud/main.go +++ b/cmd/mud/main.go @@ -9,6 +9,7 @@ import ( "syscall" "thehouseoficarus/internal/admin" + "thehouseoficarus/internal/behavior" "thehouseoficarus/internal/config" "thehouseoficarus/internal/game" "thehouseoficarus/internal/net" @@ -36,6 +37,10 @@ func main() { } } + if cfg.GameConstants.ShopDefaultRestock > 0 { + behavior.ShopDefaultRestock = cfg.GameConstants.ShopDefaultRestock + } + g := game.New(dataDir, &cfg.DefaultColors, cfg.StartupValidation, cfg.StartingRoom) g.Ticks.Start(cfg.TickLength) defer g.Ticks.Stop() |
