Forráskód Böngészése

掉落来源检测

zhaoyang 3 éve
szülő
commit
4afd9f1ec3

+ 17 - 2
GameClient/Assets/Editor/Excel/Scanner/ItemApproachScanner.cs

@@ -320,6 +320,10 @@ namespace GFGEditor
                 a.AddRange(storyFightCfg.bonusBaseArr);
                 int[][] bonus = a.ToArray();
                 bool result = CheckItemInBonus(itemId, bonus);
+                if (itemId == 100095)
+                {
+                    Debug.Log("zoya");
+                }
                 if (result)
                 {
                     return true;
@@ -353,9 +357,20 @@ namespace GFGEditor
                 List<DropOutCfg> aList = manager.GetCfgs(dropId);
                 foreach (DropOutCfg dropOutCfg in aList)
                 {
-                    if (itemId == dropOutCfg.item)
+                    if (manager.GetCfgs(dropOutCfg.item).Count > 0)
+                    {
+                        int[] _dropIds = { dropOutCfg.item };
+                        if (CheckItemInDropOut(itemId, _dropIds))
+                        {
+                            return true;
+                        }
+                    }
+                    else
                     {
-                        return true;
+                        if (itemId == dropOutCfg.item)
+                        {
+                            return true;
+                        }
                     }
                 }
             }