v0.8.0: fixed mimics incorrectly being the default heap type
This commit is contained in:
+4
-1
@@ -302,13 +302,16 @@ public abstract class RegularLevel extends Level {
|
|||||||
case 4:
|
case 4:
|
||||||
type = Heap.Type.CHEST;
|
type = Heap.Type.CHEST;
|
||||||
break;
|
break;
|
||||||
case 5: default:
|
case 5:
|
||||||
if (Dungeon.depth > 1 && findMob(cell) == null){
|
if (Dungeon.depth > 1 && findMob(cell) == null){
|
||||||
mobs.add(Mimic.spawnAt(cell, toDrop));
|
mobs.add(Mimic.spawnAt(cell, toDrop));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
type = Heap.Type.CHEST;
|
type = Heap.Type.CHEST;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
type = Heap.Type.HEAP;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((toDrop instanceof Artifact && Random.Int(2) == 0) ||
|
if ((toDrop instanceof Artifact && Random.Int(2) == 0) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user