|
@@ -62,8 +62,14 @@ namespace GFGGame
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- long curMoneyCanBuy = ItemDataManager.GetItemNum(_shopCfg.costId) / _shopCfg.price;
|
|
|
-
|
|
|
+ long itemCount = ItemDataManager.GetItemNum(_shopCfg.costId);
|
|
|
+ long curMoneyCanBuy = itemCount / _shopCfg.price;
|
|
|
+ if (_shopCfg.menu1 == ConstStoreTabId.STORE_ARENA)
|
|
|
+ {
|
|
|
+ itemCount = ItemDataManager.GetItemNum(ConstItemID.ARENA_CUR_COST);
|
|
|
+ long itemCountOther = ItemDataManager.GetItemNum(ConstItemID.ARENA_PAST_COST);
|
|
|
+ curMoneyCanBuy = (itemCount + itemCountOther) / _shopCfg.price;
|
|
|
+ }
|
|
|
if (_shopCfg.maxBuyNum == 0)
|
|
|
{
|
|
|
|