瀏覽代碼

祈福消耗提示

zhaoyang 2 年之前
父節點
當前提交
7a73a0da22
共有 1 個文件被更改,包括 1 次插入15 次删除
  1. 1 15
      GameClient/Assets/Game/HotUpdate/Views/League/LeaguePrayView.cs

+ 1 - 15
GameClient/Assets/Game/HotUpdate/Views/League/LeaguePrayView.cs

@@ -98,22 +98,9 @@ namespace GFGGame
             int type = (int)(context.sender as GObject).data;
             LeaguePrayCfg prayCfg = LeaguePrayCfgArray.Instance.GetCfg(type);
             int curTimes = LeagueDataManager.Instance.GetPrayTimesByType(type);
-            // long hasCount = ItemDataManager.GetItemNum(prayCfg.consumeArr[0][0]);
-            // long needCount = prayCfg.consumeArr[0][1];
+
             if (type == LeaguePrayType.First && curTimes != 0 || type != LeaguePrayType.First)
             {
-                if (prayCfg.consumeArr[0][0] == ConstItemID.GOLD)
-                {
-                    ItemUtil.AddGold(null, 1);
-                }
-                else if (prayCfg.consumeArr[0][0] == ConstItemID.DIAMOND_RED)
-                {
-                    ItemUtil.AddDiamondRed();
-                }
-                else
-                {
-                    PromptController.Instance.ShowFloatTextPrompt("消耗不足");
-                }
 
                 if (!ItemUtil.CheckItemEnough(prayCfg.consumeArr[0][0], prayCfg.consumeArr[0][1]))
                 {
@@ -121,7 +108,6 @@ namespace GFGGame
                     ItemUtil.BuyCurrency(prayCfg.consumeArr[0][0], prayCfg.consumeArr[0][1] - has);
                     return;
                 }
-                return;
             }
             LeagueSproxy.ReqPrayLeague(type).Coroutine();
         }