ZPM generating patched. If it won't work this time, imma look for the
razors in the drawer...
This commit is contained in:
parent
49072956a7
commit
2f8c4b7168
@ -228,7 +228,7 @@ public class Game {
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (!source.canHazZPM()) {
|
while (!source.canHazZPM()) {
|
||||||
int j = 0;
|
int newSourceCounter = 0;
|
||||||
|
|
||||||
for (int i = 0; i < dungeon.getMapHeight(); i++) {
|
for (int i = 0; i < dungeon.getMapHeight(); i++) {
|
||||||
compare = source.getAdjacentTile(Direction.getRandom());
|
compare = source.getAdjacentTile(Direction.getRandom());
|
||||||
@ -236,12 +236,17 @@ public class Game {
|
|||||||
source = compare;
|
source = compare;
|
||||||
}
|
}
|
||||||
|
|
||||||
while(j != 20) {
|
while(newSourceCounter != 20) {
|
||||||
compare = source.getAdjacentTile(Direction.getRandom());
|
compare = source.getAdjacentTile(Direction.getRandom());
|
||||||
if (compare != null)
|
if (compare != null) {
|
||||||
if (!compare.hasZPM() && (compare.playerBaseOnTile == null))
|
|
||||||
source = compare;
|
source = compare;
|
||||||
j++;
|
if (!compare.hasZPM() && (compare.playerBaseOnTile == null)) {
|
||||||
|
if (source.canHazZPM()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
newSourceCounter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user