|
@@ -21,9 +21,6 @@ namespace GFGEditor
|
|
|
CheckClothingShopCfg();
|
|
|
CheckSuitCfg();
|
|
|
CheckSuitGuideMenuCfg();
|
|
|
- CheckSuitSyntheticMenuCfg();
|
|
|
- CheckSuitSyntheticCfg();
|
|
|
- CheckClothingSyntheticCfg();
|
|
|
CheckItemCfg();
|
|
|
CheckCardStarCfg();
|
|
|
CheckCardStoryCfg();
|
|
@@ -163,39 +160,6 @@ namespace GFGEditor
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private static void CheckSuitSyntheticMenuCfg()
|
|
|
- {
|
|
|
- //SuitSyntheticMenuCfgArray cfgArray = SuitSyntheticMenuCfgArray.Instance;
|
|
|
- //SuitSyntheticMenuCfg[] dataArray = cfgArray.dataArray;
|
|
|
- //foreach(SuitSyntheticMenuCfg cfg in dataArray)
|
|
|
- //{
|
|
|
- // if (cfg.suitIds.Length > 0)
|
|
|
- // {
|
|
|
- // string[] values = cfg.suitIds.Split(';');
|
|
|
- // foreach (string value in values)
|
|
|
- // {
|
|
|
- // int valueInt = int.Parse(value);
|
|
|
- // CheckSuitExist(valueInt, "合成SuitSyntheticMenuCfg.suitIds");
|
|
|
- // CheckSuitSyntheticCfgExist(valueInt, "合成SuitSyntheticMenuCfg.suitIds");
|
|
|
- // CheckSuitClothingSyntheticCfgExist(valueInt, "合成SuitSyntheticMenuCfg.suitIds");
|
|
|
- // }
|
|
|
- // }
|
|
|
- //}
|
|
|
- }
|
|
|
-
|
|
|
- private static void CheckSuitSyntheticCfg()
|
|
|
- {
|
|
|
- //SuitSyntheticCfgArray cfgArray = SuitSyntheticCfgArray.Instance;
|
|
|
- //SuitSyntheticCfg[] dataArray = cfgArray.dataArray;
|
|
|
- //foreach(SuitSyntheticCfg cfg in dataArray)
|
|
|
- //{
|
|
|
- // CheckStoryLevelCfgExist(cfg.storyLevelId, "合成SuitSyntheticCfg.storyLevelId");
|
|
|
- // CheckSuitExist(cfg.preSuitId, "合成SuitSyntheticCfg.preSuitId");
|
|
|
- // CheckItemsExist(cfg.boxBonusArr, "合成SuitSyntheticCfg.boxBonus");
|
|
|
- //}
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
private static void CheckClothingSyntheticCfg()
|
|
|
{
|
|
|
//ClothingSyntheticCfgArray cfgArray = ClothingSyntheticCfgArray.Instance;
|
|
@@ -215,8 +179,9 @@ namespace GFGEditor
|
|
|
{
|
|
|
if (cfg.resLayer1 == 0 && cfg.resLayer2 == 0 && ItemUtilCS.IsDressUpItem(cfg.id))
|
|
|
{
|
|
|
- throw (new Exception("物品" + cfg.id + "没有配置显示层"));
|
|
|
+ ET.Log.Error (new Exception("物品" + cfg.id + "没有配置显示层"));
|
|
|
}
|
|
|
+ CheckClothingSyntheticCfgExist(cfg);
|
|
|
}
|
|
|
}
|
|
|
//=====================================================================================================
|
|
@@ -322,47 +287,21 @@ namespace GFGEditor
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private static void CheckSuitSyntheticCfgExist(int id, string keyName)
|
|
|
+ private static void CheckClothingSyntheticCfgExist(ItemCfg itemCfg)
|
|
|
{
|
|
|
- //if(id > 0)
|
|
|
- //{
|
|
|
- // SuitSyntheticCfgArray cfgArray = SuitSyntheticCfgArray.Instance;
|
|
|
- // SuitSyntheticCfg cfg = cfgArray.GetCfg(id);
|
|
|
- // if (cfg == null)
|
|
|
- // {
|
|
|
- // Debug.LogFormat("{0}配置的套装{1}没有对应的合成解锁配置", new object[] { keyName, id });
|
|
|
- // }
|
|
|
- //}
|
|
|
- }
|
|
|
-
|
|
|
- private static void CheckSuitClothingSyntheticCfgExist(int id, string keyName)
|
|
|
- {
|
|
|
- if (id > 0)
|
|
|
+ if(itemCfg.suitId > 0)
|
|
|
{
|
|
|
- SuitCfgArray cfgArray = SuitCfgArray.Instance;
|
|
|
- SuitCfg cfg = cfgArray.GetCfg(id);
|
|
|
- int[] itemInfos = cfg.partsArr;
|
|
|
- foreach (int itemId in itemInfos)
|
|
|
+ var suitCfg = SuitCfgArray.Instance.GetCfg(itemCfg.suitId);
|
|
|
+ if(suitCfg != null && suitCfg.syntheticType > 0)
|
|
|
{
|
|
|
- keyName = string.Format("{0}配置的套装{1}必含部件", keyName, id);
|
|
|
- CheckClothingSyntheticCfgExist(itemId, keyName);
|
|
|
+ if(itemCfg.syntheticCostID <= 0 || itemCfg.syntheticCostNum <= 0 || itemCfg.syntheticMateriarsArr.Length <= 0)
|
|
|
+ {
|
|
|
+ Debug.LogErrorFormat("服装{0}没有对应的合成消耗配置", new object[] { itemCfg.id });
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private static void CheckClothingSyntheticCfgExist(int id, string keyName)
|
|
|
- {
|
|
|
- //if(id > 0)
|
|
|
- //{
|
|
|
- // ClothingSyntheticCfgArray cfgArray = ClothingSyntheticCfgArray.Instance;
|
|
|
- // ClothingSyntheticCfg cfg = cfgArray.GetCfg(id);
|
|
|
- // if (cfg == null)
|
|
|
- // {
|
|
|
- // Debug.LogErrorFormat("{0}配置的服装{1}没有对应的合成消耗配置", new object[] { keyName, id });
|
|
|
- // }
|
|
|
- //}
|
|
|
- }
|
|
|
-
|
|
|
private static void CheckStoryLevelCfgExist(int id, string keyName)
|
|
|
{
|
|
|
if(id > 0)
|