浏览代码

修改服装图鉴数量显示问题

leiyasi 1 年之前
父节点
当前提交
c6f1adeaed
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      GameClient/Assets/Game/HotUpdate/Data/DressUpMenuItemDataManager.cs

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

@@ -729,10 +729,10 @@ namespace GFGGame
             return result;
         }
 
+        // 默认的不显示
+        private static List<int> defaultID = new List<int> { 10000, 20000, 30000, 50000, 60000 };
         private static bool CanShow(ItemCfg item)
         {
-            // 默认的不显示
-            List<int> defaultID = new List<int>{ 10000, 20000, 30000, 50000, 60000 };
             if (defaultID.Contains(item.id))
             {
                 return false;
@@ -887,6 +887,7 @@ namespace GFGGame
             {
                 haveCount += _itemDatasBySubTypeDic[ConstDressUpItemType.TE_SHU].Count;
             }
+            haveCount -= defaultID.Count;
         }
         
         //整理配置表数据