|
@@ -317,7 +317,10 @@ namespace GFGGame
|
|
|
for (int i = 0; i < response.data.Count; i++)
|
|
|
{
|
|
|
list[i].cardScore = response.data[i].CardScore;
|
|
|
- list[i].itemScoreList = response.data[i].SuitScore;
|
|
|
+ for (int j = 0; j < response.data[i].SuitScore.Count; j++)
|
|
|
+ {
|
|
|
+ list[i].itemScoreList.Add(response.data[i].SuitScore[j]);
|
|
|
+ }
|
|
|
list[i].itemList = response.DressupList[i].EquipIds;
|
|
|
list[i].cardId = response.DressupList[i].CardId;
|
|
|
List<PassivitySkillCfg> skillCfgs = PassivitySkillCfgArray.Instance.GetCfgsBycardId(response.data[i].CardId);
|
|
@@ -424,12 +427,12 @@ namespace GFGGame
|
|
|
fightData.tagAddition = robotCfg.tagAddition;
|
|
|
}
|
|
|
fightData.itemScoreList.Clear();
|
|
|
- double randoms = robotProto.Randoms.Count >= robotCfg.partsScoreArr.Length ? (double)robotProto.Randoms[index] / 10000d : 1;
|
|
|
+ float randoms = robotProto.Randoms.Count >= index ? robotProto.Randoms[index] / 10000f : 1f;
|
|
|
|
|
|
for (int i = 0; i < robotCfg.partsScoreArr.Length; i++)
|
|
|
{
|
|
|
- double score = (double)robotCfg.partsScoreArr[i] * randoms;
|
|
|
- fightData.itemScoreList.Add((int)Math.Ceiling(score));
|
|
|
+ float score = robotCfg.partsScoreArr[i] * randoms;
|
|
|
+ fightData.itemScoreList.Add(score);
|
|
|
}
|
|
|
fightData.type = FightTargetType.ROBOT;
|
|
|
fightData.res = string.IsNullOrEmpty(robotProto.RobotHead) ? "self" : robotProto.RobotHead;
|