Browse Source

抽卡跳过

zhaoyang 2 năm trước cách đây
mục cha
commit
c6b2c61596

+ 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]);
                 }