소스 검색

抽卡跳过

zhaoyang 2 년 전
부모
커밋
c6b2c61596
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxNewDressView.cs

+ 4 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxNewDressView.cs

@@ -89,7 +89,10 @@ namespace GFGGame
             _oldRewardList.Clear();
             for (int i = 0; i < _rewardList.Count; i++)
             {
-                if (GetThisCount(_rewardList[i].id, _rewardList) == ItemDataManager.GetItemNum(_rewardList[i].id) && !IsAddToNewRewardList(_rewardList[i].id))
+                long hasCount = ItemDataManager.GetItemNum(_rewardList[i].id);
+                int thisCount = GetThisCount(_rewardList[i].id, _rewardList);
+                bool isAddToNew = !IsAddToNewRewardList(_rewardList[i].id);
+                if (thisCount == hasCount && !isAddToNew)
                 {
                     _newRewardList.Add(_rewardList[i]);
                 }