diff options
| author | historia <[not public]> | 2026-07-10 00:43:29 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-10 00:43:29 -0400 |
| commit | 6e7c0b3ec4253bb58a815979b1f4574d08cb1f53 (patch) | |
| tree | dbff1952bdbf14cd58a6128775e263b53fc64ec1 /internal/world/room_migrate.go | |
| parent | 9836513d287396fabcba85956366e6410d7363ef (diff) | |
| download | thehouseoficarus-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.go | 22 |
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 { |
