|
@@ -19,7 +19,7 @@ namespace GFGEditor
|
|
public static void startScan()
|
|
public static void startScan()
|
|
{
|
|
{
|
|
ItemCfg[] dataArray = ItemCfgArray.Instance.dataArray;
|
|
ItemCfg[] dataArray = ItemCfgArray.Instance.dataArray;
|
|
- GetApproachCall[] actions = new GetApproachCall[] { GetClothingShopApproach, GetZhaiXingApproach, GetStoryLevelApproach, GetClothingSyntheticApproach, GetSuitGuideApproach, GetSuitSyntheticApproach, GetClothingDecomposeApproach, CheckGiftBagApproach, CheckShopExchangeApproach, CheckClothingFosterApproach };
|
|
|
|
|
|
+ GetApproachCall[] actions = new GetApproachCall[] { GetClothingShopApproach, GetZhaiXingApproach, GetStoryLevelApproach, GetClothingSyntheticApproach, GetSuitGuideApproach, GetSuitSyntheticApproach, GetClothingDecomposeApproach, CheckGiftBagApproach, CheckShopExchangeApproach, CheckClothingFosterApproach, CheckDailyTaskApproach };
|
|
Dictionary<SuitCfg, List<int>> suitDic = new Dictionary<SuitCfg, List<int>>();
|
|
Dictionary<SuitCfg, List<int>> suitDic = new Dictionary<SuitCfg, List<int>>();
|
|
int suitPartTotalCount = 0;
|
|
int suitPartTotalCount = 0;
|
|
foreach (ItemCfg cfg in dataArray)
|
|
foreach (ItemCfg cfg in dataArray)
|
|
@@ -330,36 +330,6 @@ namespace GFGEditor
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
- // /// <summary>
|
|
|
|
- // /// 检测掉落表是否产出该物品
|
|
|
|
- // /// </summary>
|
|
|
|
- // /// <param name="itemId"></param>
|
|
|
|
- // /// <returns></returns>
|
|
|
|
- // private static bool CheckDropApproach(int itemId, int dropId)
|
|
|
|
- // {
|
|
|
|
- // DropOutCfgArray manager = DropOutCfgArray.Instance;
|
|
|
|
- // List<DropOutCfg> dataArray = manager.GetCfgs(dropId);
|
|
|
|
- // for (int i = 0; i < dataArray.Count; i++)
|
|
|
|
- // {
|
|
|
|
- // if (dataArray[i].item == itemId)
|
|
|
|
- // {
|
|
|
|
- // return true;
|
|
|
|
- // }
|
|
|
|
- // if (manager.GetCfgs(dataArray[i].item).Count > 0)
|
|
|
|
- // {
|
|
|
|
- // if (dataArray[i].item == 11000003)
|
|
|
|
- // {
|
|
|
|
- // ET.Log.Debug("");
|
|
|
|
- // }
|
|
|
|
- // if (CheckDropApproach(itemId, dataArray[i].item))
|
|
|
|
- // {
|
|
|
|
- // return true;
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // return false;
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
private static bool CheckItemInBonus(int itemId, StoryLevelCfg cfg)
|
|
private static bool CheckItemInBonus(int itemId, StoryLevelCfg cfg)
|
|
{
|
|
{
|
|
if (cfg.fightID.Length > 0)
|
|
if (cfg.fightID.Length > 0)
|
|
@@ -509,6 +479,27 @@ namespace GFGEditor
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 检测每日任务是否产出该物品
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="itemId"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ private static string CheckDailyTaskApproach(int itemId)
|
|
|
|
+ {
|
|
|
|
+ DailyActiveRewardCfgArray manager = DailyActiveRewardCfgArray.Instance;
|
|
|
|
+ DailyActiveRewardCfg[] dataArray = manager.dataArray;
|
|
|
|
+ for (int i = 0; i < dataArray.Length; i++)
|
|
|
|
+ {
|
|
|
|
+ for (int j = 0; j < dataArray[i].rewardsArr.Length; j++)
|
|
|
|
+ {
|
|
|
|
+ if (dataArray[i].rewardsArr[j][0] == itemId)
|
|
|
|
+ {
|
|
|
|
+ return ConstFunctionId.DAILY_TASK;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|