From 94572c13a445ad7a2e92912a19c2c09cc9e75928 Mon Sep 17 00:00:00 2001 From: Renge Date: Thu, 21 Apr 2022 00:43:06 -0400 Subject: [PATCH] feat: testing code --- src/shattered_sword/Tools/RandomMapGenerator.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shattered_sword/Tools/RandomMapGenerator.ts b/src/shattered_sword/Tools/RandomMapGenerator.ts index 1764cff..ead6085 100644 --- a/src/shattered_sword/Tools/RandomMapGenerator.ts +++ b/src/shattered_sword/Tools/RandomMapGenerator.ts @@ -154,6 +154,9 @@ export default class RandomMapGenerator { } } if (!thisEntrance) { + if (!this.hasExit) { + // throw new Error("Wrong order in map template" + facing); + } return false; } let room = this.copyRoom(nextRoom, nextPosition.x, nextPosition.y);