v0.6.1: removed further signpost logic

This commit is contained in:
Evan Debenham
2017-07-21 12:19:43 -04:00
committed by Evan Debenham
parent 2fe0b7cc7a
commit b627fe8ab3
7 changed files with 8 additions and 21 deletions
@@ -191,13 +191,6 @@ public class CavesBossLevel extends Level {
}
}
int sign;
do {
sign = Random.Int( ROOM_LEFT, ROOM_RIGHT ) + Random.Int( ROOM_TOP, ROOM_BOTTOM ) * width();
} while (sign == entrance || map[sign] == Terrain.INACTIVE_TRAP);
map[sign] = Terrain.SIGN;
return true;
}
@@ -221,7 +214,7 @@ public class CavesBossLevel extends Level {
int pos;
do {
pos = Random.IntRange( ROOM_LEFT, ROOM_RIGHT ) + Random.IntRange( ROOM_TOP + 1, ROOM_BOTTOM ) * width();
} while (pos == entrance || map[pos] == Terrain.SIGN);
} while (pos == entrance);
drop( item, pos ).type = Heap.Type.REMAINS;
}
}
@@ -139,9 +139,6 @@ public class CityBossLevel extends Level {
}
}
int sign = arenaDoor + 2*width() + 1;
map[sign] = Terrain.SIGN;
return true;
}
@@ -175,7 +172,7 @@ public class CityBossLevel extends Level {
pos =
Random.IntRange( LEFT + 1, LEFT + HALL_WIDTH - 2 ) +
Random.IntRange( TOP + HALL_HEIGHT + 1, TOP + HALL_HEIGHT + CHAMBER_HEIGHT ) * width();
} while (pos == entrance || map[pos] == Terrain.SIGN);
} while (pos == entrance);
drop( item, pos ).type = Heap.Type.REMAINS;
}
}
@@ -66,8 +66,6 @@ public class DeadEndLevel extends Level {
entrance = SIZE * width() + SIZE / 2 + 1;
map[entrance] = Terrain.ENTRANCE;
map[(SIZE / 2 + 1) * (width() + 1)] = Terrain.SIGN;
exit = 0;
return true;
@@ -162,7 +162,7 @@ public class HallsBossLevel extends Level {
int pos;
do {
pos = Random.IntRange( ROOM_LEFT, ROOM_RIGHT ) + Random.IntRange( ROOM_TOP + 1, ROOM_BOTTOM ) * width();
} while (pos == entrance || map[pos] == Terrain.SIGN);
} while (pos == entrance);
drop( item, pos ).type = Heap.Type.REMAINS;
}
}
@@ -120,7 +120,7 @@ public class LastShopLevel extends RegularLevel {
int pos;
do {
pos = pointToCell(roomEntrance.random());
} while (pos == entrance || map[pos] == Terrain.SIGN);
} while (pos == entrance);
drop( item, pos ).type = Heap.Type.REMAINS;
}
}
@@ -385,7 +385,6 @@ public class PrisonBossLevel extends Level {
private static final int D = Terrain.DOOR;
private static final int L = Terrain.LOCKED_DOOR;
private static final int e = Terrain.EMPTY;
private static final int S = Terrain.SIGN;
private static final int T = Terrain.INACTIVE_TRAP;
@@ -402,7 +401,7 @@ public class PrisonBossLevel extends Level {
W, W, W, W, e, e, e, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, W, W, e, E, e, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, W, W, e, e, e, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, W, W, S, e, e, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, W, W, e, e, e, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, W, W, W, D, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, W, W, W, e, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, M, W, W, e, W, W, M, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
@@ -504,7 +503,7 @@ public class PrisonBossLevel extends Level {
W, W, W, W, e, e, e, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, W, W, e, E, e, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, W, W, e, e, e, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, W, W, S, e, e, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, W, W, e, e, e, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, W, W, W, D, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, W, W, W, e, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
W, W, M, W, W, e, W, W, M, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W, W,
@@ -120,7 +120,7 @@ public class SewerBossLevel extends SewerLevel {
int pos;
do {
pos = pointToCell(roomEntrance.random());
} while (pos == entrance || map[pos] == Terrain.SIGN || solid[pos]);
} while (pos == entrance || solid[pos]);
drop( item, pos ).type = Heap.Type.REMAINS;
}
}
@@ -130,7 +130,7 @@ public class SewerBossLevel extends SewerLevel {
int pos;
do {
pos = pointToCell(roomEntrance.random());
} while (pos == entrance || map[pos] == Terrain.SIGN || solid[pos]);
} while (pos == entrance || solid[pos]);
return pos;
}