aboutsummaryrefslogtreecommitdiff
path: root/internal/game/map_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/map_test.go')
-rw-r--r--internal/game/map_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/map_test.go b/internal/game/map_test.go
index 2fe9c1e..2975551 100644
--- a/internal/game/map_test.go
+++ b/internal/game/map_test.go
@@ -406,7 +406,7 @@ func TestMap3DDisconnectedComponent(t *testing.T) {
// Player has only visited tower 1. Tower 2 should appear but dimmed (unvisited).
sess := &net.Session{Player: &player.Player{
- Stats: player.PlayerStats{RoomsVisited: map[int]bool{1: true}},
+ Stats: player.PlayerStats{RoomsVisited: player.NewRoomSetFrom(1)},
Flags: map[string]any{},
}}
@@ -429,7 +429,7 @@ func TestMap3DDifferentZExcluded(t *testing.T) {
g := &Game{Deps: Deps{World: world.New(dir)}, GlobalFlags: NewGlobalFlagStore()}
mg := mapGlyphsForPlayer(false)
sess := &net.Session{Player: &player.Player{
- Stats: player.PlayerStats{RoomsVisited: map[int]bool{1: true, 2: true}},
+ Stats: player.PlayerStats{RoomsVisited: player.NewRoomSetFrom(1, 2)},
Flags: map[string]any{},
}}