|
@@ -19,7 +19,7 @@ namespace GFGEditor
|
|
|
public static void startScan()
|
|
|
{
|
|
|
ItemCfg[] dataArray = ItemCfgArray.Instance.dataArray;
|
|
|
- GetApproachCall[] actions = new GetApproachCall[] { GetClothingShopApproach, GetZhaiXingApproach, GetStoryLevelApproach, GetClothingSyntheticApproach, GetSuitGuideApproach, GetSuitSyntheticApproach, GetClothingDecomposeApproach, CheckGiftBagApproach, CheckShopExchangeApproach };
|
|
|
+ GetApproachCall[] actions = new GetApproachCall[] { GetClothingShopApproach, GetZhaiXingApproach, GetStoryLevelApproach, GetClothingSyntheticApproach, GetSuitGuideApproach, GetSuitSyntheticApproach, GetClothingDecomposeApproach, CheckGiftBagApproach, CheckShopExchangeApproach, CheckClothingFosterApproach };
|
|
|
Dictionary<SuitCfg, List<int>> suitDic = new Dictionary<SuitCfg, List<int>>();
|
|
|
int suitPartTotalCount = 0;
|
|
|
foreach (ItemCfg cfg in dataArray)
|
|
@@ -132,7 +132,23 @@ namespace GFGEditor
|
|
|
{
|
|
|
if (cfg.itemID == itemId)
|
|
|
{
|
|
|
- return "FU_ZHUANG_DIAN";
|
|
|
+ return "FU_ZHUANG_DIAN=" + ConstStoreId.CLOTHING_STORE_ID; ;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ShopCfg[] shopCfgCJs = ShopCfgCJArray.Instance.dataArray;
|
|
|
+ foreach (ShopCfg cfg in shopCfgCJs)
|
|
|
+ {
|
|
|
+ if (cfg.itemID == itemId)
|
|
|
+ {
|
|
|
+ return "FU_ZHUANG_DIAN=" + ConstStoreId.LUCKY_BOX_STORE_ID;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ShopCfg[] shopCfgCJAs = ShopCfgCJAArray.Instance.dataArray;
|
|
|
+ foreach (ShopCfg cfg in shopCfgCJAs)
|
|
|
+ {
|
|
|
+ if (cfg.itemID == itemId)
|
|
|
+ {
|
|
|
+ return "FU_ZHUANG_DIAN=" + ConstStoreId.LUCKY_BOX_ACTIVITY_STORE_ID;
|
|
|
}
|
|
|
}
|
|
|
return null;
|
|
@@ -184,12 +200,17 @@ namespace GFGEditor
|
|
|
}
|
|
|
|
|
|
int dropId = cfg.dropId;
|
|
|
- if (itemId == 3000028)
|
|
|
+ if (itemId == 10014)
|
|
|
{
|
|
|
+ if (dropId == 11000008)
|
|
|
+ {
|
|
|
+ ET.Log.Debug("");
|
|
|
+ }
|
|
|
ET.Log.Debug("");
|
|
|
}
|
|
|
+ int[] _dropIds = { dropId };
|
|
|
|
|
|
- bool approach = CheckDropApproach(itemId, dropId);
|
|
|
+ bool approach = CheckItemInDropOut(itemId, _dropIds);
|
|
|
if (approach)
|
|
|
{
|
|
|
return "ZHAI_XING";
|
|
@@ -297,32 +318,35 @@ namespace GFGEditor
|
|
|
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 (dropId == 11000006)
|
|
|
- {
|
|
|
- ET.Log.Debug("");
|
|
|
- }
|
|
|
- return CheckDropApproach(itemId, dataArray[i].item);
|
|
|
- }
|
|
|
- }
|
|
|
- return false;
|
|
|
- }
|
|
|
+ // /// <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)
|
|
|
{
|
|
@@ -359,7 +383,12 @@ namespace GFGEditor
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
+ /// <summary>
|
|
|
+ /// 检测掉落表是否产出该物品
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="itemId"></param>
|
|
|
+ /// <param name="dropIds"></param>
|
|
|
+ /// <returns></returns>
|
|
|
private static bool CheckItemInDropOut(int itemId, int[] dropIds)
|
|
|
{
|
|
|
List<ItemData> result = new List<ItemData>();
|
|
@@ -427,6 +456,42 @@ namespace GFGEditor
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 检测服装升级是否产出该物品
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="itemId"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ private static string CheckClothingFosterApproach(int itemId)
|
|
|
+ {
|
|
|
+ //培养
|
|
|
+ SuitFosterCfgArray manager = SuitFosterCfgArray.Instance;
|
|
|
+ SuitFosterCfg[] 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.SUIT_FOSTER;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //换新
|
|
|
+ SuitFosterListCfgArray manager1 = SuitFosterListCfgArray.Instance;
|
|
|
+ SuitFosterListCfg[] dataArray1 = manager1.dataArray;
|
|
|
+ for (int i = 0; i < dataArray1.Length; i++)
|
|
|
+ {
|
|
|
+ for (int j = 0; j < dataArray1[i].renewRewardsArr.Length; j++)
|
|
|
+ {
|
|
|
+ if (dataArray1[i].renewRewardsArr[j][0] == itemId)
|
|
|
+ {
|
|
|
+ return ConstFunctionId.SUIT_FOSTER;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|