|
@@ -172,17 +172,29 @@ namespace GFGEditor
|
|
{
|
|
{
|
|
Debug.Log("");
|
|
Debug.Log("");
|
|
}
|
|
}
|
|
|
|
+
|
|
foreach (LuckyBoxCfg cfg in dataArray)
|
|
foreach (LuckyBoxCfg cfg in dataArray)
|
|
{
|
|
{
|
|
for (int i = 0; i < cfg.bonusArr.Length; i++)
|
|
for (int i = 0; i < cfg.bonusArr.Length; i++)
|
|
{
|
|
{
|
|
- int dropId = cfg.bonusArr[i][0];
|
|
|
|
- bool approach = CheckDropApproach(itemId, dropId);
|
|
|
|
- if (approach)
|
|
|
|
|
|
+ if (itemId == cfg.bonusArr[i][0])
|
|
{
|
|
{
|
|
return "ZHAI_XING";
|
|
return "ZHAI_XING";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ int dropId = cfg.dropId;
|
|
|
|
+ if (itemId == 3000028)
|
|
|
|
+ {
|
|
|
|
+ ET.Log.Debug("");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ bool approach = CheckDropApproach(itemId, dropId);
|
|
|
|
+ if (approach)
|
|
|
|
+ {
|
|
|
|
+ return "ZHAI_XING";
|
|
|
|
+ }
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
@@ -302,7 +314,10 @@ namespace GFGEditor
|
|
}
|
|
}
|
|
if (manager.GetCfgs(dataArray[i].item).Count > 0)
|
|
if (manager.GetCfgs(dataArray[i].item).Count > 0)
|
|
{
|
|
{
|
|
-
|
|
|
|
|
|
+ if (dropId == 11000006)
|
|
|
|
+ {
|
|
|
|
+ ET.Log.Debug("");
|
|
|
|
+ }
|
|
return CheckDropApproach(itemId, dataArray[i].item);
|
|
return CheckDropApproach(itemId, dataArray[i].item);
|
|
}
|
|
}
|
|
}
|
|
}
|