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