use of com.watabou.pixeldungeon.items.weapon.melee.Sword in project pixel-dungeon-remix by NYRDS.
the class ShopPainter method range.
private static Item[] range() {
ArrayList<Item> items = new ArrayList<>();
switch(Dungeon.depth) {
case 6:
items.add((Random.Int(2) == 0 ? new Quarterstaff() : new Spear()).identify());
items.add(new LeatherArmor().identify());
items.add(new Weightstone());
items.add(new TomeOfKnowledge().identify());
break;
case 11:
items.add((Random.Int(2) == 0 ? new Sword() : new Mace()).identify());
items.add(new MailArmor().identify());
items.add(new Weightstone());
items.add(new TomeOfKnowledge().identify());
break;
case 16:
items.add((Random.Int(2) == 0 ? new Longsword() : new BattleAxe()).identify());
items.add(new ScaleArmor().identify());
items.add(new Weightstone());
items.add(new TomeOfKnowledge().identify());
break;
case 21:
switch(Random.Int(3)) {
case 0:
items.add(new Glaive().identify());
break;
case 1:
items.add(new WarHammer().identify());
break;
case 2:
items.add(new PlateArmor().identify());
break;
}
items.add(new Weightstone());
items.add(new Torch());
items.add(new Torch());
break;
case 27:
switch(Random.Int(3)) {
case 0:
items.add(new Claymore().identify());
break;
case 1:
items.add(new Halberd().identify());
break;
case 2:
items.add(new GothicArmor().identify());
break;
}
items.add(new PotionOfHealing());
items.add(new PotionOfExperience());
items.add(new PotionOfMight());
break;
}
items.add(new PotionOfHealing());
for (int i = 0; i < 2; i++) {
items.add(Generator.random(Generator.Category.POTION));
}
items.add(new ScrollOfIdentify());
items.add(new ScrollOfRemoveCurse());
items.add(new ScrollOfMagicMapping());
items.add(Generator.random(Generator.Category.SCROLL));
items.add(new OverpricedRation());
items.add(new OverpricedRation());
items.add(new Ankh());
Collections.shuffle(items);
return items.toArray(new Item[items.size()]);
}
use of com.watabou.pixeldungeon.items.weapon.melee.Sword in project pixel-dungeon-remix by NYRDS.
the class TownShopLevel method makeShop.
private void makeShop() {
ArrayList<Item> items = new ArrayList<>();
items.add(new LeatherArmor().identify());
items.add(new Dagger().identify());
items.add(new Knuckles().identify());
items.add(new Sword().identify());
items.add(new Quarterstaff().identify());
items.add(new TomeOfKnowledge().identify());
for (int i = 0; i < 3; i++) {
items.add(new OverpricedRation());
items.add(new Dart(5).identify());
items.add(new CommonArrow(25));
items.add(new Torch().identify());
}
items.add(new Keyring());
items.add(new ScrollHolder());
items.add(new PotionBelt());
items.add(new SeedPouch());
items.add(new Quiver());
items.add(new WandHolster());
Item[] range = items.toArray(new Item[items.size()]);
for (Item item : range) {
itemForSell(item);
}
}
Aggregations