|
@@ -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 };
|
|
|
+ GetApproachCall[] actions = new GetApproachCall[] { GetClothingShopApproach, GetZhaiXingApproach, GetStoryLevelApproach, GetClothingSyntheticApproach, GetSuitGuideApproach, GetSuitSyntheticApproach, GetClothingDecomposeApproach, CheckGiftBagApproach, CheckShopExchangeApproach };
|
|
|
Dictionary<SuitCfg, List<int>> suitDic = new Dictionary<SuitCfg, List<int>>();
|
|
|
int suitPartTotalCount = 0;
|
|
|
foreach (ItemCfg cfg in dataArray)
|
|
@@ -388,6 +388,46 @@ namespace GFGEditor
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 检测商城-礼包是否产出该物品
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="itemId"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ private static string CheckGiftBagApproach(int itemId)
|
|
|
+ {
|
|
|
+ GiftBagCfgArray manager = GiftBagCfgArray.Instance;
|
|
|
+ GiftBagCfg[] dataArray = manager.dataArray;
|
|
|
+ for (int i = 0; i < dataArray.Length; i++)
|
|
|
+ {
|
|
|
+ for (int j = 0; j < dataArray[i].itemsArr.Length; j++)
|
|
|
+ {
|
|
|
+ if (dataArray[i].itemsArr[j][0] == itemId)
|
|
|
+ {
|
|
|
+ return ConstFunctionId.SHOP_GIFT_BAG + "=1";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 检测商城-道具兑换是否产出该物品
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="itemId"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ private static string CheckShopExchangeApproach(int itemId)
|
|
|
+ {
|
|
|
+ ShopExchangeCfgArray manager = ShopExchangeCfgArray.Instance;
|
|
|
+ ShopExchangeCfg[] dataArray = manager.dataArray;
|
|
|
+ for (int i = 0; i < dataArray.Length; i++)
|
|
|
+ {
|
|
|
+ if (dataArray[i].itemId == itemId)
|
|
|
+ {
|
|
|
+ return ConstFunctionId.SHOP_EXCHANGE + "=2";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
}
|