aboutsummaryrefslogtreecommitdiff
path: root/internal/world/room_migrate.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-10 00:43:29 -0400
committerhistoria <[not public]>2026-07-10 00:43:29 -0400
commit6e7c0b3ec4253bb58a815979b1f4574d08cb1f53 (patch)
treedbff1952bdbf14cd58a6128775e263b53fc64ec1 /internal/world/room_migrate.go
parent9836513d287396fabcba85956366e6410d7363ef (diff)
downloadthehouseoficarus-6e7c0b3ec4253bb58a815979b1f4574d08cb1f53.tar.gz
feat(admin): add triggers to rooms, add global triggers
Diffstat (limited to 'internal/world/room_migrate.go')
-rw-r--r--internal/world/room_migrate.go22
1 files changed, 1 insertions, 21 deletions
diff --git a/internal/world/room_migrate.go b/internal/world/room_migrate.go
index d609c6a..9bc7e0f 100644
--- a/internal/world/room_migrate.go
+++ b/internal/world/room_migrate.go
@@ -6,7 +6,7 @@ import (
// RewriteRoomIDs remaps every genuine room-ID reference in this room per idMap
// (oldID -> newID): exit targets; every Step.Teleport and Step.SpawnMob
-// .DespawnRooms inside on_enter/on_exit/on_flag_change/on_global_flag_change/
+// .DespawnRooms inside on_enter/on_exit/
// on_traverse/on_use/on_look/on_kill blocks; every Condition.Room anywhere in
// the room (exits, descriptions, trigger conditions, per-step conditions,
// including nested all_of/any_of); and mob WanderRooms. It does NOT touch
@@ -62,26 +62,6 @@ func (r *Room) RewriteRoomIDs(idMap map[int]int) bool {
}
changed = changed || c
}
- for i := range r.OnFlagChange {
- c := false
- if remapStepList(idMap, r.OnFlagChange[i].Steps) {
- c = true
- }
- if remapCondition(idMap, r.OnFlagChange[i].Condition) {
- c = true
- }
- changed = changed || c
- }
- for i := range r.OnGlobalFlagChange {
- c := false
- if remapStepList(idMap, r.OnGlobalFlagChange[i].Steps) {
- c = true
- }
- if remapCondition(idMap, r.OnGlobalFlagChange[i].Condition) {
- c = true
- }
- changed = changed || c
- }
// Conditional room descriptions carry a Condition.
for i := range r.Description {