aboutsummaryrefslogtreecommitdiff
path: root/internal/game/map_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-07 16:46:32 -0400
committerhistoria <[not public]>2026-07-07 16:46:32 -0400
commit726997d799edc388cd448e978d5bb0755aaa551c (patch)
treeb7aa8dc2dc9d2edcad1c0a4012a28d01d348db69 /internal/game/map_test.go
parentab2597b22ccdb71116992aec78080d9858358d04 (diff)
downloadthehouseoficarus-726997d799edc388cd448e978d5bb0755aaa551c.tar.gz
feat: bitpacked and base64 encoded VisitedRooms in player YAML to keep the file human readable
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{},
}}