v0.2.4: tweaked item generation: treasuries spawn a bit more gold, bombs are in armories, and honeypots are in shortages.

This commit is contained in:
Evan Debenham
2015-02-10 13:50:15 -05:00
parent 72975a49cc
commit dded8b5dc4
4 changed files with 17 additions and 7 deletions
@@ -18,6 +18,7 @@
package com.shatteredpixel.shatteredpixeldungeon.levels.painters;
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
import com.shatteredpixel.shatteredpixeldungeon.items.Honeypot;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfLiquidFlame;
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
@@ -33,6 +34,8 @@ public class StoragePainter extends Painter {
fill( level, room, Terrain.WALL );
fill( level, room, 1, floor );
boolean honeyPot = Random.Int( 2 ) == 0;
int n = Random.IntRange( 3, 4 );
for (int i=0; i < n; i++) {
@@ -40,7 +43,11 @@ public class StoragePainter extends Painter {
do {
pos = room.random();
} while (level.map[pos] != floor);
level.drop( prize( level ), pos );
if (honeyPot){
level.drop( new Honeypot(), pos);
honeyPot = false;
} else
level.drop( prize( level ), pos );
}
room.entrance().set( Room.Door.Type.BARRICADE );