aboutsummaryrefslogtreecommitdiff
path: root/internal/world/room_migrate.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-18 18:38:35 -0400
committerhistoria <[not public]>2026-09-18 18:38:35 -0400
commit1f118d79e319da4e765502e9ca5b661772de94f1 (patch)
treebca8a3fd1e538f1c302480511e6ba872c92e10b8 /internal/world/room_migrate.go
parent5ad42a51df4dcc5ccc3aa6a6d902085ce2ee4239 (diff)
downloadthehouseoficarus-1f118d79e319da4e765502e9ca5b661772de94f1.tar.gz
refactor: casino table core; fix: stake/migration/validation gaps
Diffstat (limited to 'internal/world/room_migrate.go')
-rw-r--r--internal/world/room_migrate.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/world/room_migrate.go b/internal/world/room_migrate.go
index 9bc7e0f..b7840bc 100644
--- a/internal/world/room_migrate.go
+++ b/internal/world/room_migrate.go
@@ -71,7 +71,12 @@ func (r *Room) RewriteRoomIDs(idMap map[int]int) bool {
}
// Per-room local objects: on_use/on_look steps + object desc conditions.
+ // WanderRooms is a room reference on every object entry (reference or
+ // local), so remap it outside the Local branch.
for i := range r.Objects {
+ if remapIntSlice(idMap, r.Objects[i].WanderRooms) {
+ changed = true
+ }
if r.Objects[i].Local != nil {
loc := r.Objects[i].Local
if remapTriggers(idMap, loc.OnUse) {