v1.4.0: fixed errors in new logic in randomRespawnCell for boss levels

This commit is contained in:
Evan Debenham
2022-09-09 14:27:31 -04:00
parent c3fab95dfe
commit 80a1bbe865
5 changed files with 5 additions and 5 deletions

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}