瀏覽代碼

飞花令道具计算

zhaoyang 2 年之前
父節點
當前提交
534812c3b5
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      GameClient/Assets/Game/HotUpdate/Views/Store/ItemExchangeView.cs

+ 8 - 2
GameClient/Assets/Game/HotUpdate/Views/Store/ItemExchangeView.cs

@@ -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)
                 {