feat: testing code

This commit is contained in:
Renge 2022-04-21 00:43:06 -04:00
parent ec639f17a8
commit 94572c13a4

View File

@ -154,6 +154,9 @@ export default class RandomMapGenerator {
} }
} }
if (!thisEntrance) { if (!thisEntrance) {
if (!this.hasExit) {
// throw new Error("Wrong order in map template" + facing);
}
return false; return false;
} }
let room = this.copyRoom(nextRoom, nextPosition.x, nextPosition.y); let room = this.copyRoom(nextRoom, nextPosition.x, nextPosition.y);