feat: testing code
This commit is contained in:
parent
ec639f17a8
commit
94572c13a4
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user