diff options
| author | historia <[not public]> | 2026-07-07 16:24:27 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-07 16:24:27 -0400 |
| commit | ab2597b22ccdb71116992aec78080d9858358d04 (patch) | |
| tree | 8beae4060c2831c4a68f92b682b5350cfa1d0afb /internal/world/room_migrate_test.go | |
| parent | 3f30fa3eec9c2e2acf9a984ccefb9529a25e688a (diff) | |
| download | thehouseoficarus-ab2597b22ccdb71116992aec78080d9858358d04.tar.gz | |
rename flags to global_flags (differentiate from player_flags)
Diffstat (limited to 'internal/world/room_migrate_test.go')
| -rw-r--r-- | internal/world/room_migrate_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/world/room_migrate_test.go b/internal/world/room_migrate_test.go index b035172..5696a36 100644 --- a/internal/world/room_migrate_test.go +++ b/internal/world/room_migrate_test.go @@ -5,7 +5,7 @@ import "testing" func TestRoomRewriteRoomIDs(t *testing.T) { r := &Room{ Exits: map[ExitDir]ExitDef{ - North: {Room: 10, SetFlags: map[string]any{"last": 10}}, + North: {Room: 10, SetGlobalFlags: map[string]any{"last": 10}}, South: {Room: 99}, }, Triggers: []TriggerDef{ @@ -43,8 +43,8 @@ func TestRoomRewriteRoomIDs(t *testing.T) { // Author set_flags values are NOT structural room references and must not // be remapped (the old swapid regex wrongly rewrote these). - if v := r.Exits[North].SetFlags["last"]; v != 10 { - t.Errorf("set_flags value remapped: got %v, want 10", v) + if v := r.Exits[North].SetGlobalFlags["last"]; v != 10 { + t.Errorf("set_global_flags value remapped: got %v, want 10", v) } if r.Triggers[0].Room != 31 { |
