v3.3.0: garden and magic well rooms now require keys
This increases the overall number of iron keys by about 20%
This commit is contained in:
@@ -21,7 +21,9 @@
|
|||||||
|
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.levels.rooms.special;
|
package com.shatteredpixel.shatteredpixeldungeon.levels.rooms.special;
|
||||||
|
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Foliage;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Foliage;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.items.keys.IronKey;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter;
|
||||||
@@ -37,7 +39,8 @@ public class GardenRoom extends SpecialRoom {
|
|||||||
Painter.fill( level, this, 1, Terrain.HIGH_GRASS );
|
Painter.fill( level, this, 1, Terrain.HIGH_GRASS );
|
||||||
Painter.fill( level, this, 2, Terrain.GRASS );
|
Painter.fill( level, this, 2, Terrain.GRASS );
|
||||||
|
|
||||||
entrance().set( Door.Type.REGULAR );
|
entrance().set( Door.Type.LOCKED );
|
||||||
|
level.addItemToSpawn( new IronKey( Dungeon.depth ) );
|
||||||
|
|
||||||
int bushes = Random.Int(3);
|
int bushes = Random.Int(3);
|
||||||
if (bushes == 0) {
|
if (bushes == 0) {
|
||||||
|
|||||||
@@ -21,9 +21,11 @@
|
|||||||
|
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.levels.rooms.special;
|
package com.shatteredpixel.shatteredpixeldungeon.levels.rooms.special;
|
||||||
|
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.WaterOfAwareness;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.WaterOfAwareness;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.WaterOfHealth;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.WaterOfHealth;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.WellWater;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.WellWater;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.items.keys.IronKey;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter;
|
||||||
@@ -54,6 +56,7 @@ public class MagicWellRoom extends SpecialRoom {
|
|||||||
|
|
||||||
WellWater.seed(c.x + level.width() * c.y, 1, waterClass, level);
|
WellWater.seed(c.x + level.width() * c.y, 1, waterClass, level);
|
||||||
|
|
||||||
entrance().set( Door.Type.REGULAR );
|
entrance().set( Door.Type.LOCKED );
|
||||||
|
level.addItemToSpawn( new IronKey( Dungeon.depth ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user