Stop bows from selling in stacks
This commit is contained in:
parent
36e6c7ce33
commit
4e8ed68efd
@ -31,8 +31,8 @@ public class PvpItem extends ShopItem
|
||||
LEFT_CLICK_BUY,
|
||||
C.cWhite + "Costs " + C.cGreen + (buyPrice == 0 ? "Free (Tutorial)" : buyPrice + "g"),
|
||||
C.cWhite + " ",
|
||||
UtilItem.isArmor(type) || UtilItem.isTool(type) ? "" : C.cYellow + "Shift Left-Click" + C.cWhite + " to Buy " + C.cGreen + bulkCount,
|
||||
UtilItem.isArmor(type) || UtilItem.isTool(type) ? "" : C.cWhite + "Costs " + C.cGreen + (buyPrice * bulkCount) + "g", C.cWhite + " ",
|
||||
UtilItem.isArmor(type) || UtilItem.isTool(type) || type == Material.BOW ? "" : C.cYellow + "Shift Left-Click" + C.cWhite + " to Buy " + C.cGreen + bulkCount,
|
||||
UtilItem.isArmor(type) || UtilItem.isTool(type) || type == Material.BOW ? "" : C.cWhite + "Costs " + C.cGreen + (buyPrice * bulkCount) + "g", C.cWhite + " ",
|
||||
RIGHT_CLICK_SELL,
|
||||
C.cWhite + "Earns " + C.cGreen + (sellPrice == 0 ? "Free" : sellPrice + ""),
|
||||
C.cWhite + " ",
|
||||
|
@ -100,7 +100,7 @@ public class ShopItemButton<T extends ShopPageBase<?, ?>> implements IButton
|
||||
}
|
||||
else if (clickType == ClickType.SHIFT_LEFT || clickType == ClickType.LEFT)
|
||||
{
|
||||
final int amount = !(UtilItem.isArmor(_item.getType()) || UtilItem.isTool(_item.getType()) || UtilItem.isSword(_item.getType()) || _item.getType() == Material.BOW) && shiftClick ? 64 : 1;
|
||||
final int amount = !(UtilItem.isArmor(_item.getType()) || UtilItem.isTool(_item.getType()) || _item.getType() == Material.BOW) && shiftClick ? 64 : 1;
|
||||
final int cost = amount * _buyPrice;
|
||||
int goldCount = GoldManager.getInstance().getGold(player);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user