|
@@ -322,10 +322,11 @@ namespace GFGGame
|
|
|
// if (list.Count < response.data.Count) return false;
|
|
|
for (int i = 0; i < response.data.Count; i++)
|
|
|
{
|
|
|
- list[i].cardScore = response.data[i].CardScore;
|
|
|
- for (int j = 0; j < response.data[i].SuitScore.Count; j++)
|
|
|
+ ArenaDressupAttrProto attrProto = response.data[i];
|
|
|
+ list[i].cardScore = attrProto.CardScore;
|
|
|
+ for (int j = 0; j < attrProto.SuitScore.Count; j++)
|
|
|
{
|
|
|
- list[i].itemScoreList.Add(response.data[i].SuitScore[j]);
|
|
|
+ list[i].itemScoreList.Add(attrProto.SuitScore[j]);
|
|
|
}
|
|
|
list[i].itemList = response.DressupList[i].EquipIds;
|
|
|
list[i].cardId = response.DressupList[i].CardId;
|
|
@@ -336,16 +337,18 @@ namespace GFGGame
|
|
|
list[i].leagueSkillScore = response.SkillAttrs[j].Value;
|
|
|
}
|
|
|
}
|
|
|
- List<PassivitySkillCfg> skillCfgs = PassivitySkillCfgArray.Instance.GetCfgsBycardId(response.data[i].CardId);
|
|
|
+ list[i].skillLvs = attrProto.SkillLevel;
|
|
|
+ // List<PassivitySkillCfg> skillCfgs = PassivitySkillCfgArray.Instance.GetCfgsBycardId(attrProto.CardId);
|
|
|
|
|
|
- if (response.data[i].SkillId.Count == skillCfgs.Count)
|
|
|
- {
|
|
|
- for (int j = 0; j < skillCfgs.Count; j++)
|
|
|
- {
|
|
|
- int index = response.data[i].SkillId.IndexOf(skillCfgs[j].skillId);
|
|
|
- list[i].skillLvs.Add(response.data[i].SkillLevel[index]);
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (attrProto.SkillId.Count == skillCfgs.Count)
|
|
|
+ // {
|
|
|
+ // for (int j = 0; j < skillCfgs.Count; j++)
|
|
|
+ // {
|
|
|
+ // int skillId = skillCfgs[j].skillId;
|
|
|
+ // int index = attrProto.SkillId.IndexOf(skillId);
|
|
|
+ // list[i].skillLvs.Add(attrProto.SkillLevel[index]);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
FightDataManager.Instance.SetItemScoreList(list[i]);
|
|
|
ScoreSystemData.Instance.SetEquipScoresWithPartId(list[i]);
|
|
|
}
|