v1.4.2: fixed errors with item moving when caves boss arena seals
This commit is contained in:
+4
-3
@@ -272,12 +272,13 @@ public class CavesBossLevel extends Level {
|
|||||||
set( entrance, Terrain.WALL );
|
set( entrance, Terrain.WALL );
|
||||||
|
|
||||||
Heap heap = Dungeon.level.heaps.get( entrance );
|
Heap heap = Dungeon.level.heaps.get( entrance );
|
||||||
if (heap != null) {
|
while (heap != null && !heap.isEmpty()) {
|
||||||
int n;
|
int n;
|
||||||
do {
|
do {
|
||||||
n = entrance + PathFinder.NEIGHBOURS8[Random.Int( 8 )];
|
n = entrance + PathFinder.NEIGHBOURS8[Random.Int(8)];
|
||||||
} while (!Dungeon.level.passable[n]);
|
} while (!Dungeon.level.passable[n]);
|
||||||
Dungeon.level.drop( heap.pickUp(), n ).sprite.drop( entrance );
|
Heap dropped = Dungeon.level.drop(heap.pickUp(), n);
|
||||||
|
dropped.seen = heap.seen;
|
||||||
}
|
}
|
||||||
|
|
||||||
Char ch = Actor.findChar( entrance );
|
Char ch = Actor.findChar( entrance );
|
||||||
|
|||||||
Reference in New Issue
Block a user