Changed item tokens to 10 for non bow classes.

Fixed token prices on power/booster items.
Removed You already have this item message on items in CustomBuild.
This commit is contained in:
Jonathan Williams 2014-04-20 01:06:17 -07:00
parent 1f225f05ff
commit 65e94e59cc
3 changed files with 10 additions and 10 deletions

View File

@ -70,17 +70,21 @@ public class CustomBuildToken
{
Slots.set(2, new SlotToken("Standard Bow", Material.BOW, 1));
Slots.set(3, new SlotToken(gameClassType.name() + " Arrows", Material.ARROW, gameClassType == ClassType.Assassin ? 12 : 24));
ItemTokens = 1;
}
else
{
if (gameClassType != ClassType.Mage)
{
Slots.set(8, new SlotToken("Water Bottle", Material.POTION, 1));
Slots.set(7, new SlotToken("Water Bottle", Material.POTION, 1));
}
else
{
Slots.set(8, new SlotToken("Cobweb", Material.WEB, 3));
Slots.set(7, new SlotToken("Cobweb", Material.WEB, 3));
}
Slots.set(8, new SlotToken());
ItemTokens = 0;
}
}

View File

@ -104,11 +104,11 @@ public class ItemFactory extends MiniPlugin implements IItemFactory
AddItem(new StandardSword(this, 0, 2));
AddItem(new StandardAxe(this, 0, 2));
AddItem(new BoosterSword(this, 0, 2));
AddItem(new BoosterAxe(this, 0, 2));
AddItem(new BoosterSword(this, 0, 4));
AddItem(new BoosterAxe(this, 0, 4));
AddItem(new PowerSword(this, 0, 2));
AddItem(new PowerAxe(this, 0, 2));
AddItem(new PowerSword(this, 0, 4));
AddItem(new PowerAxe(this, 0, 4));
AddItem(new StandardBow(this, 0, 1));
}

View File

@ -311,10 +311,6 @@ public class SkillPage extends ShopPageBase<ClassShopManager, ClassCombatShop>
itemLore.add(C.cRed + "You don't have enough Item Tokens.");
}
}
else
{
itemLore.add(C.cGold + "You already have this item.");
}
//Color Gray
for (int i = 0; i < itemLore.size(); i++)