diff options
| author | historia <[not public]> | 2026-06-11 04:46:27 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-11 08:58:37 +0000 |
| commit | 1b9e2da3b3c438d8dc53d3489725dd5ba0022777 (patch) | |
| tree | 62264f24420bf4cfaa734942c65cc8dd45ba3d3b /internal/game/cmd_move.go | |
| parent | 06c02a697e5daf8832a462de5970dd4c0e13a02c (diff) | |
| download | thehouseoficarus-1b9e2da3b3c438d8dc53d3489725dd5ba0022777.tar.gz | |
feat: web client, get/drop updates and fixes
Diffstat (limited to 'internal/game/cmd_move.go')
| -rw-r--r-- | internal/game/cmd_move.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/game/cmd_move.go b/internal/game/cmd_move.go index e288dad..79ca45e 100644 --- a/internal/game/cmd_move.go +++ b/internal/game/cmd_move.go @@ -118,5 +118,11 @@ func (g *Game) ensureRoomObjects(roomID int) { if len(obj.WanderRooms) > 0 { g.World.SetObjWander(roomID, obj.ID, obj.WanderRooms, obj.WanderInterval) } + if def.BehaviorID != "" { + cfg, err := g.BehaviorStore.LoadGather(def.BehaviorID) + if err == nil && cfg.SharedDeplete > 0 { + g.World.SetObjSharedDeplete(roomID, obj.ID, cfg.SharedDeplete) + } + } } } |
