v1.1.0: fixed crashes caused by pit rooms in large demon halls floors

This commit is contained in:
Evan Debenham 2021-12-01 16:59:02 -05:00
parent 5ffcd0f8c6
commit b697051104

View File

@ -165,6 +165,8 @@ public abstract class SpecialRoom extends Room {
//60% chance for front of queue, 30% chance for next, 10% for one after that
int index = Random.chances(new float[]{6, 3, 1});
while (index > floorSpecials.size()) index--;
Room r = Reflection.newInstance(floorSpecials.get( index ));
if (r instanceof WeakFloorRoom){