From 726997d799edc388cd448e978d5bb0755aaa551c Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 7 Jul 2026 16:46:32 -0400 Subject: feat: bitpacked and base64 encoded VisitedRooms in player YAML to keep the file human readable --- internal/game/map_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/game/map_test.go') 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{}, }} -- cgit v1.2.3