v0.6.1: removed further signpost logic
This commit is contained in:
committed by
Evan Debenham
parent
2fe0b7cc7a
commit
b627fe8ab3
+1
-8
@@ -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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -221,7 +214,7 @@ public class CavesBossLevel extends Level {
|
|||||||
int pos;
|
int pos;
|
||||||
do {
|
do {
|
||||||
pos = Random.IntRange( ROOM_LEFT, ROOM_RIGHT ) + Random.IntRange( ROOM_TOP + 1, ROOM_BOTTOM ) * width();
|
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;
|
drop( item, pos ).type = Heap.Type.REMAINS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-4
@@ -139,9 +139,6 @@ public class CityBossLevel extends Level {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int sign = arenaDoor + 2*width() + 1;
|
|
||||||
map[sign] = Terrain.SIGN;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -175,7 +172,7 @@ public class CityBossLevel extends Level {
|
|||||||
pos =
|
pos =
|
||||||
Random.IntRange( LEFT + 1, LEFT + HALL_WIDTH - 2 ) +
|
Random.IntRange( LEFT + 1, LEFT + HALL_WIDTH - 2 ) +
|
||||||
Random.IntRange( TOP + HALL_HEIGHT + 1, TOP + HALL_HEIGHT + CHAMBER_HEIGHT ) * width();
|
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;
|
drop( item, pos ).type = Heap.Type.REMAINS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,8 +66,6 @@ public class DeadEndLevel extends Level {
|
|||||||
entrance = SIZE * width() + SIZE / 2 + 1;
|
entrance = SIZE * width() + SIZE / 2 + 1;
|
||||||
map[entrance] = Terrain.ENTRANCE;
|
map[entrance] = Terrain.ENTRANCE;
|
||||||
|
|
||||||
map[(SIZE / 2 + 1) * (width() + 1)] = Terrain.SIGN;
|
|
||||||
|
|
||||||
exit = 0;
|
exit = 0;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
+1
-1
@@ -162,7 +162,7 @@ public class HallsBossLevel extends Level {
|
|||||||
int pos;
|
int pos;
|
||||||
do {
|
do {
|
||||||
pos = Random.IntRange( ROOM_LEFT, ROOM_RIGHT ) + Random.IntRange( ROOM_TOP + 1, ROOM_BOTTOM ) * width();
|
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;
|
drop( item, pos ).type = Heap.Type.REMAINS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -120,7 +120,7 @@ public class LastShopLevel extends RegularLevel {
|
|||||||
int pos;
|
int pos;
|
||||||
do {
|
do {
|
||||||
pos = pointToCell(roomEntrance.random());
|
pos = pointToCell(roomEntrance.random());
|
||||||
} while (pos == entrance || map[pos] == Terrain.SIGN);
|
} while (pos == entrance);
|
||||||
drop( item, pos ).type = Heap.Type.REMAINS;
|
drop( item, pos ).type = Heap.Type.REMAINS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-3
@@ -385,7 +385,6 @@ public class PrisonBossLevel extends Level {
|
|||||||
private static final int D = Terrain.DOOR;
|
private static final int D = Terrain.DOOR;
|
||||||
private static final int L = Terrain.LOCKED_DOOR;
|
private static final int L = Terrain.LOCKED_DOOR;
|
||||||
private static final int e = Terrain.EMPTY;
|
private static final int e = Terrain.EMPTY;
|
||||||
private static final int S = Terrain.SIGN;
|
|
||||||
|
|
||||||
private static final int T = Terrain.INACTIVE_TRAP;
|
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, 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, 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, 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,
|
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, 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, 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, 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,
|
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,
|
||||||
|
|||||||
+2
-2
@@ -120,7 +120,7 @@ public class SewerBossLevel extends SewerLevel {
|
|||||||
int pos;
|
int pos;
|
||||||
do {
|
do {
|
||||||
pos = pointToCell(roomEntrance.random());
|
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;
|
drop( item, pos ).type = Heap.Type.REMAINS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -130,7 +130,7 @@ public class SewerBossLevel extends SewerLevel {
|
|||||||
int pos;
|
int pos;
|
||||||
do {
|
do {
|
||||||
pos = pointToCell(roomEntrance.random());
|
pos = pointToCell(roomEntrance.random());
|
||||||
} while (pos == entrance || map[pos] == Terrain.SIGN || solid[pos]);
|
} while (pos == entrance || solid[pos]);
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user