|
@@ -171,8 +171,6 @@ namespace GFGGame
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
public void SetItemScoreList(FightData _roleData)
|
|
|
{
|
|
|
_roleData.itemScoreList.Clear();
|
|
@@ -185,6 +183,16 @@ namespace GFGGame
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public float GetDressListAllScore(List<int> itemList, int scoreType)
|
|
|
+ {
|
|
|
+ float itemSum = 0;
|
|
|
+ for (int i = 0; i < itemList.Count; i++)
|
|
|
+ {
|
|
|
+ itemSum += ItemDataManager.GetItemAdditionScore(itemList[i], scoreType);
|
|
|
+ }
|
|
|
+ return itemSum;
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 0失败1优秀2完美
|
|
|
/// </summary>
|
|
@@ -218,13 +226,9 @@ namespace GFGGame
|
|
|
/// </summary>
|
|
|
/// <param name="arrayList"></param>
|
|
|
/// <returns></returns>
|
|
|
- public List<CardData> SortCardList(List<CardData> cardList, List<int> itemList, int scoreType)
|
|
|
+ public List<CardData> SortCardList(List<CardData> cardList, double itemSum, int scoreType)
|
|
|
{
|
|
|
- double itemSum = 0;
|
|
|
- for (int i = 0; i < itemList.Count; i++)
|
|
|
- {
|
|
|
- itemSum += ItemDataManager.GetItemAdditionScore(itemList[i], scoreType);
|
|
|
- }
|
|
|
+
|
|
|
List<CardData> arrayList = new List<CardData>(cardList);
|
|
|
for (int i = arrayList.Count - 1; i >= 0; i--)
|
|
|
{
|
|
@@ -280,8 +284,8 @@ namespace GFGGame
|
|
|
if (skillLvlCfg == null) continue;
|
|
|
skillScore += skillBaseScore * ((float)skillLvlCfg.fightPowerParam / 10000f);
|
|
|
}
|
|
|
- ET.Log.Debug("cardId:" + cardId);
|
|
|
- ET.Log.Debug("skillScore:" + skillScore);
|
|
|
+ // ET.Log.Debug("cardId:" + cardId);
|
|
|
+ // ET.Log.Debug("skillScore:" + skillScore);
|
|
|
return (long)Math.Ceiling(skillScore); ;
|
|
|
}
|
|
|
|