|
@@ -312,31 +312,6 @@ namespace GFGGame
|
|
// return GetItemScore(itemId, InstanceZonesDataManager.currentScoreType);
|
|
// return GetItemScore(itemId, InstanceZonesDataManager.currentScoreType);
|
|
}
|
|
}
|
|
|
|
|
|
- public static int GetItemScore(int itemId, int scoreType)
|
|
|
|
- {
|
|
|
|
- ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(itemId);
|
|
|
|
-
|
|
|
|
- if (itemCfg == null) return 0;
|
|
|
|
-
|
|
|
|
- int score = itemCfg.baseScore;
|
|
|
|
- switch (scoreType)
|
|
|
|
- {
|
|
|
|
- case ConstDressUpScoreType.SCORE_FENG:
|
|
|
|
- score += itemCfg.score1;
|
|
|
|
- break;
|
|
|
|
- case ConstDressUpScoreType.SCORE_HUA:
|
|
|
|
- score += itemCfg.score2;
|
|
|
|
- break;
|
|
|
|
- case ConstDressUpScoreType.SCORE_XUE:
|
|
|
|
- score += itemCfg.score3;
|
|
|
|
- break;
|
|
|
|
- case ConstDressUpScoreType.SCORE_YUE:
|
|
|
|
- score += itemCfg.score4;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- return score;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public static List<int> DressSearch(List<int> list, bool isTaoZhuang)
|
|
public static List<int> DressSearch(List<int> list, bool isTaoZhuang)
|
|
{
|
|
{
|
|
List<int> searchList = new List<int>();
|
|
List<int> searchList = new List<int>();
|
|
@@ -357,10 +332,6 @@ namespace GFGGame
|
|
searchList.Add(list[i]);
|
|
searchList.Add(list[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- // if (searchList.Count == 0)
|
|
|
|
- // {
|
|
|
|
- // PromptController.Instance.ShowFloatTextPrompt("搜索不到相关物品");
|
|
|
|
- // }
|
|
|
|
return searchList;
|
|
return searchList;
|
|
}
|
|
}
|
|
public static List<int> DressFilter(List<int> list, bool isTaoZhuang)
|
|
public static List<int> DressFilter(List<int> list, bool isTaoZhuang)
|