Lua tests: more code coverage for rooms
This commit is contained in:
+11
-2
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user