v0.9.1: tweaks to goo boss level and fire eight builder
This commit is contained in:
@@ -82,7 +82,13 @@ public class FigureEightBuilder extends RegularBuilder {
|
||||
|
||||
//TODO might want to make this able to work without an exit. Probably a random room would be landmark and the landmark room would become exit
|
||||
if (landmarkRoom == null){
|
||||
landmarkRoom = Random.element(multiConnections);
|
||||
//prefer large and giant standard rooms over others
|
||||
for (Room r : multiConnections){
|
||||
if ( r.maxConnections(Room.ALL) >= 4 &&
|
||||
(landmarkRoom == null || landmarkRoom.minWidth()*landmarkRoom.minHeight() < r.minWidth()*r.minHeight())){
|
||||
landmarkRoom = r;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (multiConnections.contains(landmarkRoom)){
|
||||
|
||||
@@ -30,6 +30,10 @@ import com.watabou.noosa.Tilemap;
|
||||
import com.watabou.utils.Random;
|
||||
|
||||
public abstract class GooBossRoom extends StandardRoom {
|
||||
|
||||
{
|
||||
joinable = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float[] sizeCatProbs() {
|
||||
|
||||
@@ -28,15 +28,9 @@ import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.Room;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.standard.EntranceRoom;
|
||||
|
||||
public class SewerBossEntranceRoom extends EntranceRoom {
|
||||
|
||||
@Override
|
||||
public int minHeight() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int minWidth() {
|
||||
return 8;
|
||||
|
||||
{
|
||||
joinable = false;
|
||||
}
|
||||
|
||||
public void paint(Level level ) {
|
||||
|
||||
@@ -33,6 +33,10 @@ import com.watabou.noosa.Tilemap;
|
||||
import com.watabou.utils.Point;
|
||||
|
||||
public class SewerBossExitRoom extends ExitRoom {
|
||||
|
||||
{
|
||||
joinable = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int minWidth() {
|
||||
|
||||
Reference in New Issue
Block a user