v1.4.0: fixed errors in new logic in randomRespawnCell for boss levels
This commit is contained in:
@@ -223,7 +223,7 @@ public class CavesBossLevel extends Level {
|
||||
for (int i : PathFinder.NEIGHBOURS8){
|
||||
int cell = entrance() + i;
|
||||
if (passable[cell]
|
||||
&& Actor.findChar(cell) != null
|
||||
&& Actor.findChar(cell) == null
|
||||
&& (!Char.hasProp(ch, Char.Property.LARGE) || openSpace[cell])){
|
||||
candidates.add(cell);
|
||||
}
|
||||
|
||||
@@ -279,7 +279,7 @@ public class CityBossLevel extends Level {
|
||||
for (int i : PathFinder.NEIGHBOURS8){
|
||||
int cell = entrance() + i;
|
||||
if (passable[cell]
|
||||
&& Actor.findChar(cell) != null
|
||||
&& Actor.findChar(cell) == null
|
||||
&& (!Char.hasProp(ch, Char.Property.LARGE) || openSpace[cell])){
|
||||
candidates.add(cell);
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ public class HallsBossLevel extends Level {
|
||||
for (int i : PathFinder.NEIGHBOURS8){
|
||||
int cell = entrance() + i;
|
||||
if (passable[cell]
|
||||
&& Actor.findChar(cell) != null
|
||||
&& Actor.findChar(cell) == null
|
||||
&& (!Char.hasProp(ch, Char.Property.LARGE) || openSpace[cell])){
|
||||
candidates.add(cell);
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ public class LastLevel extends Level {
|
||||
for (int i : PathFinder.NEIGHBOURS8){
|
||||
int cell = entrance() + i;
|
||||
if (passable[cell]
|
||||
&& Actor.findChar(cell) != null
|
||||
&& Actor.findChar(cell) == null
|
||||
&& (!Char.hasProp(ch, Char.Property.LARGE) || openSpace[cell])){
|
||||
candidates.add(cell);
|
||||
}
|
||||
|
||||
@@ -692,7 +692,7 @@ public class PrisonBossLevel extends Level {
|
||||
for (int i : PathFinder.NEIGHBOURS8){
|
||||
int cell = ENTRANCE_POS + i;
|
||||
if (passable[cell]
|
||||
&& Actor.findChar(cell) != null
|
||||
&& Actor.findChar(cell) == null
|
||||
&& (!Char.hasProp(ch, Char.Property.LARGE) || openSpace[cell])){
|
||||
candidates.add(cell);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user