From 31883b1f9ca43afad4288e20d7203f49e0a62233 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 13 Aug 2017 14:06:30 -0400 Subject: [PATCH] v0.6.1: suspicious chest rooms now don't always contain mimics --- .../levels/rooms/standard/SuspiciousChestRoom.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/standard/SuspiciousChestRoom.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/standard/SuspiciousChestRoom.java index d2ea4e84e..a25fb1b65 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/standard/SuspiciousChestRoom.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/standard/SuspiciousChestRoom.java @@ -27,6 +27,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.Item; import com.shatteredpixel.shatteredpixeldungeon.levels.Level; import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain; import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter; +import com.watabou.utils.Random; public class SuspiciousChestRoom extends EmptyRoom { @@ -54,6 +55,10 @@ public class SuspiciousChestRoom extends EmptyRoom { Painter.set(level, center, Terrain.PEDESTAL); - level.drop(i, center).type = Heap.Type.MIMIC; + if (Random.Int(3) == 0) { + level.drop(i, center).type = Heap.Type.MIMIC; + } else { + level.drop(i, center).type = Heap.Type.CHEST; + } } }