|
|
@ -15,36 +15,36 @@ public class StorageRoom extends SecretRoom { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void buildExtras(ScratchMap map, MapTheme theme, Random rand, Coord min, Coord max) |
|
|
|
protected void buildExtras(ScratchMap map, MapTheme theme, Random rand, Coord min, Coord max) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int maxStuff = 3; |
|
|
|
int maxStuff = 4; |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < Calc.randInt(rand, 0, 1); i++) { |
|
|
|
for (int i = 0; i < Calc.randInt(rand, 0, 1); i++) { |
|
|
|
map.addItemInArea(Items.SANDWICH.createItem(), min, max, 50); |
|
|
|
map.addItemInArea(Items.SANDWICH.createItem(), min, max, 50); |
|
|
|
if (--maxStuff == 0) break; |
|
|
|
if (--maxStuff == 0) return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < Calc.randInt(rand, 0, 2); i++) { |
|
|
|
for (int i = 0; i < Calc.randInt(rand, 0, 2); i++) { |
|
|
|
map.addItemInArea(Items.TWIG.createItemDamaged(40), min, max, 50); |
|
|
|
map.addItemInArea(Items.TWIG.createItemDamaged(40), min, max, 50); |
|
|
|
if (--maxStuff == 0) break; |
|
|
|
if (--maxStuff == 0) return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < Calc.randInt(rand, 0, 2); i++) { |
|
|
|
for (int i = 0; i < Calc.randInt(rand, 0, 2); i++) { |
|
|
|
map.addItemInArea(Items.BONE.createItemDamaged(40), min, max, 50); |
|
|
|
map.addItemInArea(Items.BONE.createItemDamaged(40), min, max, 50); |
|
|
|
if (--maxStuff == 0) break; |
|
|
|
if (--maxStuff == 0) return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < Calc.randInt(rand, 0, 2); i++) { |
|
|
|
for (int i = 0; i < Calc.randInt(rand, 0, 2); i++) { |
|
|
|
map.addItemInArea(Items.MEAT.createItem(), min, max, 50); |
|
|
|
map.addItemInArea(Items.MEAT.createItem(), min, max, 50); |
|
|
|
if (--maxStuff == 0) break; |
|
|
|
if (--maxStuff == 0) return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < Calc.randInt(rand, 0, 2); i++) { |
|
|
|
for (int i = 0; i < Calc.randInt(rand, 0, 2); i++) { |
|
|
|
map.addItemInArea(Items.CHEESE.createItem(), min, max, 50); |
|
|
|
map.addItemInArea(Items.CHEESE.createItem(), min, max, 50); |
|
|
|
if (--maxStuff == 0) break; |
|
|
|
if (--maxStuff == 0) return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < Calc.randInt(rand, 0, 1); i++) { |
|
|
|
for (int i = 0; i < Calc.randInt(rand, 0, 1); i++) { |
|
|
|
map.addItemInArea(Items.ROCK.createItemDamaged(30), min, max, 50); |
|
|
|
map.addItemInArea(Items.ROCK.createItemDamaged(30), min, max, 50); |
|
|
|
if (--maxStuff == 0) break; |
|
|
|
if (--maxStuff == 0) return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|