Search in sources :

Example 1 with Sword

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()]);
}
Also used : PotionOfExperience(com.watabou.pixeldungeon.items.potions.PotionOfExperience) MailArmor(com.watabou.pixeldungeon.items.armor.MailArmor) ScrollOfIdentify(com.watabou.pixeldungeon.items.scrolls.ScrollOfIdentify) TomeOfKnowledge(com.nyrds.pixeldungeon.items.books.TomeOfKnowledge) ArrayList(java.util.ArrayList) BattleAxe(com.watabou.pixeldungeon.items.weapon.melee.BattleAxe) ScrollOfMagicMapping(com.watabou.pixeldungeon.items.scrolls.ScrollOfMagicMapping) Halberd(com.nyrds.pixeldungeon.items.guts.weapon.melee.Halberd) Torch(com.watabou.pixeldungeon.items.Torch) Item(com.watabou.pixeldungeon.items.Item) Longsword(com.watabou.pixeldungeon.items.weapon.melee.Longsword) Sword(com.watabou.pixeldungeon.items.weapon.melee.Sword) LeatherArmor(com.watabou.pixeldungeon.items.armor.LeatherArmor) PotionOfHealing(com.watabou.pixeldungeon.items.potions.PotionOfHealing) Glaive(com.watabou.pixeldungeon.items.weapon.melee.Glaive) GothicArmor(com.nyrds.pixeldungeon.items.guts.armor.GothicArmor) PotionOfMight(com.watabou.pixeldungeon.items.potions.PotionOfMight) Claymore(com.nyrds.pixeldungeon.items.guts.weapon.melee.Claymore) ScaleArmor(com.watabou.pixeldungeon.items.armor.ScaleArmor) Quarterstaff(com.watabou.pixeldungeon.items.weapon.melee.Quarterstaff) Point(com.watabou.utils.Point) Weightstone(com.watabou.pixeldungeon.items.Weightstone) WarHammer(com.watabou.pixeldungeon.items.weapon.melee.WarHammer) ScrollOfRemoveCurse(com.watabou.pixeldungeon.items.scrolls.ScrollOfRemoveCurse) PlateArmor(com.watabou.pixeldungeon.items.armor.PlateArmor) Mace(com.watabou.pixeldungeon.items.weapon.melee.Mace) OverpricedRation(com.watabou.pixeldungeon.items.food.OverpricedRation) Ankh(com.watabou.pixeldungeon.items.Ankh) Spear(com.watabou.pixeldungeon.items.weapon.melee.Spear)

Example 2 with Sword

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);
    }
}
Also used : Keyring(com.watabou.pixeldungeon.items.bags.Keyring) Quiver(com.watabou.pixeldungeon.items.bags.Quiver) TomeOfKnowledge(com.nyrds.pixeldungeon.items.books.TomeOfKnowledge) ArrayList(java.util.ArrayList) ScrollHolder(com.watabou.pixeldungeon.items.bags.ScrollHolder) Quarterstaff(com.watabou.pixeldungeon.items.weapon.melee.Quarterstaff) Torch(com.watabou.pixeldungeon.items.Torch) WandHolster(com.watabou.pixeldungeon.items.bags.WandHolster) Item(com.watabou.pixeldungeon.items.Item) Knuckles(com.watabou.pixeldungeon.items.weapon.melee.Knuckles) PotionBelt(com.watabou.pixeldungeon.items.bags.PotionBelt) Sword(com.watabou.pixeldungeon.items.weapon.melee.Sword) OverpricedRation(com.watabou.pixeldungeon.items.food.OverpricedRation) CommonArrow(com.watabou.pixeldungeon.items.weapon.missiles.CommonArrow) SeedPouch(com.watabou.pixeldungeon.items.bags.SeedPouch) LeatherArmor(com.watabou.pixeldungeon.items.armor.LeatherArmor) Dagger(com.watabou.pixeldungeon.items.weapon.melee.Dagger) Dart(com.watabou.pixeldungeon.items.weapon.missiles.Dart)

Aggregations

TomeOfKnowledge (com.nyrds.pixeldungeon.items.books.TomeOfKnowledge)2 Item (com.watabou.pixeldungeon.items.Item)2 Torch (com.watabou.pixeldungeon.items.Torch)2 LeatherArmor (com.watabou.pixeldungeon.items.armor.LeatherArmor)2 OverpricedRation (com.watabou.pixeldungeon.items.food.OverpricedRation)2 Quarterstaff (com.watabou.pixeldungeon.items.weapon.melee.Quarterstaff)2 Sword (com.watabou.pixeldungeon.items.weapon.melee.Sword)2 ArrayList (java.util.ArrayList)2 GothicArmor (com.nyrds.pixeldungeon.items.guts.armor.GothicArmor)1 Claymore (com.nyrds.pixeldungeon.items.guts.weapon.melee.Claymore)1 Halberd (com.nyrds.pixeldungeon.items.guts.weapon.melee.Halberd)1 Ankh (com.watabou.pixeldungeon.items.Ankh)1 Weightstone (com.watabou.pixeldungeon.items.Weightstone)1 MailArmor (com.watabou.pixeldungeon.items.armor.MailArmor)1 PlateArmor (com.watabou.pixeldungeon.items.armor.PlateArmor)1 ScaleArmor (com.watabou.pixeldungeon.items.armor.ScaleArmor)1 Keyring (com.watabou.pixeldungeon.items.bags.Keyring)1 PotionBelt (com.watabou.pixeldungeon.items.bags.PotionBelt)1 Quiver (com.watabou.pixeldungeon.items.bags.Quiver)1 ScrollHolder (com.watabou.pixeldungeon.items.bags.ScrollHolder)1