From 26ca3549aabf8a5b37fbe46c94bd04530eb18186 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 19 Oct 2023 16:37:37 -0400 Subject: [PATCH] v2.2.1: fixed locked chests rarely spawning on caves quest entrance --- .../levels/rooms/quest/BlacksmithRoom.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/quest/BlacksmithRoom.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/quest/BlacksmithRoom.java index 5872a65b1..0642be70f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/quest/BlacksmithRoom.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/quest/BlacksmithRoom.java @@ -105,6 +105,15 @@ public class BlacksmithRoom extends StandardRoom { } } + @Override + public boolean canPlaceCharacter(Point p, Level l) { + if (l.map[l.pointToCell(p)] == Terrain.EXIT){ + return false; + } else { + return super.canPlaceCharacter(p, l); + } + } + public static class QuestEntrance extends CustomTilemap { {