Lua tests: more code coverage for rooms

This commit is contained in:
Pasi Kallinen
2026-01-25 13:49:10 +02:00
parent cb8de068ad
commit 68ba3955fd
+11 -2
View File
@@ -394,15 +394,24 @@ function test_room()
des.room({ x=4, y=3, w=3,h=3 }); des.room({ x=4, y=3, w=3,h=3 });
end end
}); });
des.room({ type="ordinary", coord={3, 3}, w=3, h=3 }); des.room({ xalign="right", yalign="bottom",
des.room(); contents = function(rm)
des.room({ contents = function(rm)
des.door({ state= "random", wall = "random" });
end });
end
});
des.room({ contents = function(rm) des.room({ contents = function(rm)
des.object(); des.object();
des.monster(); des.monster();
des.trap();
des.terrain(0,0, "L"); des.terrain(0,0, "L");
des.altar({ coord = {0,0} });
des.terrain(rm.width, rm.height, "T"); des.terrain(rm.width, rm.height, "T");
end end
}); });
des.room({ type="ordinary", coord={3, 3}, w=3, h=3 });
des.room();
des.random_corridors(); des.random_corridors();
end end