v1.1.0: fixed crashes caused by pit rooms in large demon halls floors
This commit is contained in:
parent
5ffcd0f8c6
commit
b697051104
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue
Block a user