aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mud/main.go5
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()