Now when you loot an item the loot UI works.

This commit is contained in:
Zed A. Shaw 2025-06-11 23:49:37 -04:00
parent 38159a5f84
commit 86eabed3db
8 changed files with 66 additions and 119 deletions

View file

@ -14,7 +14,7 @@ TEST_CASE("hunt-and-kill", "[mazes]") {
maze::Builder maze(map);
maze.hunt_and_kill();
maze.dump("BASIC MAZE");
// maze.dump("BASIC MAZE");
maze.randomize_rooms();
maze.hunt_and_kill();
@ -29,8 +29,6 @@ TEST_CASE("hunt-and-kill", "[mazes]") {
maze.$walls[it.y][it.x] = WALL_PATH_LIMIT;
}
}
maze.dump("MAZE WITH ROOMS");
}
TEST_CASE("hunt-and-kill box", "[mazes]") {
@ -43,7 +41,7 @@ TEST_CASE("hunt-and-kill box", "[mazes]") {
for(auto at : maze.$dead_ends) {
maze.$walls[at.y][at.x]=32;
}
maze.dump("INNER BOX");
// maze.dump("INNER BOX");
REQUIRE(maze.$rooms.size() == 0);
}
@ -58,7 +56,7 @@ TEST_CASE("hunt-and-kill ring", "[mazes]") {
for(auto at : maze.$dead_ends) {
maze.$walls[at.y][at.x]=32;
}
maze.dump("INNER RING");
// maze.dump("INNER RING");
REQUIRE(maze.$rooms.size() == 0);
}
@ -73,7 +71,7 @@ TEST_CASE("hunt-and-kill fissure", "[mazes]") {
for(auto at : maze.$dead_ends) {
maze.$walls[at.y][at.x]=32;
}
maze.dump("FISSURE MAZE");
// maze.dump("FISSURE MAZE");
REQUIRE(maze.$rooms.size() == 0);
}
@ -88,7 +86,7 @@ TEST_CASE("hunt-and-kill no-dead-ends", "[mazes]") {
maze.remove_dead_ends();
maze.dump("NO DEAD ENDS");
// maze.dump("NO DEAD ENDS");
}
TEST_CASE("hunt-and-kill too much", "[mazes]") {
@ -102,5 +100,5 @@ TEST_CASE("hunt-and-kill too much", "[mazes]") {
maze.divide({3,3}, {19,18});
maze.hunt_and_kill();
maze.dump("COMBINED");
// maze.dump("COMBINED");
}