diff --git a/src/shattered_sword/Tools/RandomMapGenerator.ts b/src/shattered_sword/Tools/RandomMapGenerator.ts index ead6085..d31b8dc 100644 --- a/src/shattered_sword/Tools/RandomMapGenerator.ts +++ b/src/shattered_sword/Tools/RandomMapGenerator.ts @@ -155,7 +155,7 @@ export default class RandomMapGenerator { } if (!thisEntrance) { if (!this.hasExit) { - // throw new Error("Wrong order in map template" + facing); + throw new Error("Wrong order in map template" + facing); } return false; } @@ -164,7 +164,7 @@ export default class RandomMapGenerator { this.rooms.push(room); this.roomPlaced += 1; if (this.hasExit && this.gen.random() <= 0.3) { - return false; + return true; } for (let entrance of nextRoom.entrances) { if (entrance != thisEntrance) {