v0.9.1: tweaks to goo boss level and fire eight builder
This commit is contained in:
+7
-1
@@ -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
|
//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){
|
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)){
|
if (multiConnections.contains(landmarkRoom)){
|
||||||
|
|||||||
+4
@@ -30,6 +30,10 @@ import com.watabou.noosa.Tilemap;
|
|||||||
import com.watabou.utils.Random;
|
import com.watabou.utils.Random;
|
||||||
|
|
||||||
public abstract class GooBossRoom extends StandardRoom {
|
public abstract class GooBossRoom extends StandardRoom {
|
||||||
|
|
||||||
|
{
|
||||||
|
joinable = false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float[] sizeCatProbs() {
|
public float[] sizeCatProbs() {
|
||||||
|
|||||||
+3
-9
@@ -28,15 +28,9 @@ import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.Room;
|
|||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.standard.EntranceRoom;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.standard.EntranceRoom;
|
||||||
|
|
||||||
public class SewerBossEntranceRoom extends EntranceRoom {
|
public class SewerBossEntranceRoom extends EntranceRoom {
|
||||||
|
|
||||||
@Override
|
{
|
||||||
public int minHeight() {
|
joinable = false;
|
||||||
return 6;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int minWidth() {
|
|
||||||
return 8;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void paint(Level level ) {
|
public void paint(Level level ) {
|
||||||
|
|||||||
+4
@@ -33,6 +33,10 @@ import com.watabou.noosa.Tilemap;
|
|||||||
import com.watabou.utils.Point;
|
import com.watabou.utils.Point;
|
||||||
|
|
||||||
public class SewerBossExitRoom extends ExitRoom {
|
public class SewerBossExitRoom extends ExitRoom {
|
||||||
|
|
||||||
|
{
|
||||||
|
joinable = false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int minWidth() {
|
public int minWidth() {
|
||||||
|
|||||||
Reference in New Issue
Block a user