Bläddra i källkod

背包内的道具红点逻辑 剔除6003001和6003002

huangxiaoyue 1 år sedan
förälder
incheckning
2f4c00afe9

+ 3 - 2
GameClient/Assets/Game/HotUpdate/Data/ItemDataManager.cs

@@ -354,8 +354,9 @@ namespace GFGGame
         public static bool BagIsExistGiftBag()
         public static bool BagIsExistGiftBag()
         {
         {
             var isExistGiftBag = _dataDic.Values.Any(a =>
             var isExistGiftBag = _dataDic.Values.Any(a =>
-                (a.itemType == ConstItemType.USEABLE && a.subType == ConstItemSubType.USEABLE_GIFT_BAG_SELECTABLE) ||
-                (a.itemType == ConstItemType.USEABLE && a.subType == ConstItemSubType.USEABLE_GIFT_BAG_RANDOM));
+                ((a.itemType == ConstItemType.USEABLE && a.subType == ConstItemSubType.USEABLE_GIFT_BAG_SELECTABLE) ||
+                (a.itemType == ConstItemType.USEABLE && a.subType == ConstItemSubType.USEABLE_GIFT_BAG_RANDOM)) 
+                && a.id != 6003001 && a.id != 6003002);
 
 
             return isExistGiftBag;
             return isExistGiftBag;
         }
         }

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/Bag/BagView.cs

@@ -103,10 +103,11 @@ namespace GFGGame
             item.target.data = itemCfg;
             item.target.data = itemCfg;
             item.m_QualityType.selectedIndex = itemCfg.rarity - 1;
             item.m_QualityType.selectedIndex = itemCfg.rarity - 1;
             //是礼包就加入红点
             //是礼包就加入红点
-            if ((itemCfg.itemType == ConstItemType.USEABLE &&
+            if (((itemCfg.itemType == ConstItemType.USEABLE &&
                  itemCfg.subType == ConstItemSubType.USEABLE_GIFT_BAG_SELECTABLE) ||
                  itemCfg.subType == ConstItemSubType.USEABLE_GIFT_BAG_SELECTABLE) ||
                 (itemCfg.itemType == ConstItemType.USEABLE &&
                 (itemCfg.itemType == ConstItemType.USEABLE &&
                  itemCfg.subType == ConstItemSubType.USEABLE_GIFT_BAG_RANDOM))
                  itemCfg.subType == ConstItemSubType.USEABLE_GIFT_BAG_RANDOM))
+                 && itemData.id != 6003001 && itemData.id != 6003002)
             {
             {
                 RedDotController.Instance.SetComRedDot(item.target, true);
                 RedDotController.Instance.SetComRedDot(item.target, true);
             }
             }