v1.2.0: gave magical fire rooms a minimum size
This commit is contained in:
parent
2d8961dc0e
commit
b92e21a286
|
@ -50,6 +50,10 @@ import com.watabou.utils.Rect;
|
||||||
|
|
||||||
public class MagicalFireRoom extends SpecialRoom {
|
public class MagicalFireRoom extends SpecialRoom {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int minWidth() { return 7; }
|
||||||
|
public int minHeight() { return 7; }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void paint(Level level) {
|
public void paint(Level level) {
|
||||||
|
|
||||||
|
@ -93,7 +97,6 @@ public class MagicalFireRoom extends SpecialRoom {
|
||||||
boolean honeyPot = Random.Int( 2 ) == 0;
|
boolean honeyPot = Random.Int( 2 ) == 0;
|
||||||
|
|
||||||
int n = Random.IntRange( 3, 4 );
|
int n = Random.IntRange( 3, 4 );
|
||||||
n = Math.min(behindFire.square(), n);
|
|
||||||
|
|
||||||
for (int i=0; i < n; i++) {
|
for (int i=0; i < n; i++) {
|
||||||
int pos;
|
int pos;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user