|
@@ -104,9 +104,9 @@ namespace GFGGame
|
|
await ArenaSproxy.ReqArenaFightAttr(targetData.RoleInfo.roleId, targetData.FightDatas);
|
|
await ArenaSproxy.ReqArenaFightAttr(targetData.RoleInfo.roleId, targetData.FightDatas);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- {
|
|
|
|
- ArenaDataManager.Instance.AddCheckSeasonOpenTimer();
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ ArenaDataManager.Instance.AddCheckSeasonOpenTimer();
|
|
|
|
+
|
|
if (ViewManager.isViewOpen(typeof(ArenaView).FullName))
|
|
if (ViewManager.isViewOpen(typeof(ArenaView).FullName))
|
|
{
|
|
{
|
|
ViewManager.Show<ArenaView>();
|
|
ViewManager.Show<ArenaView>();
|
|
@@ -422,12 +422,16 @@ namespace GFGGame
|
|
fightData.tags = new string[1] { ArenaDataManager.Instance.Tag };
|
|
fightData.tags = new string[1] { ArenaDataManager.Instance.Tag };
|
|
fightData.tagAddition = robotCfg.tagAddition;
|
|
fightData.tagAddition = robotCfg.tagAddition;
|
|
}
|
|
}
|
|
- fightData.itemScoreList = new List<int>(robotCfg.partsScoreArr);
|
|
|
|
-
|
|
|
|
|
|
+ fightData.itemScoreList.Clear();
|
|
|
|
+ for (int i = 0; i < robotCfg.partsScoreArr.Length; i++)
|
|
|
|
+ {
|
|
|
|
+ double score = (double)robotCfg.partsScoreArr[i] * (double)robotProto.Randoms[index] / 10000;
|
|
|
|
+ fightData.itemScoreList.Add((int)Math.Ceiling(score));
|
|
|
|
+ }
|
|
fightData.type = FightTargetType.ROBOT;
|
|
fightData.type = FightTargetType.ROBOT;
|
|
fightData.res = robotCfg.targetRes;
|
|
fightData.res = robotCfg.targetRes;
|
|
- // double cardScore = (double)robotCfg.cardScore * (double)robotProto.Random / 10000;
|
|
|
|
- // fightData.cardScore = (int)Math.Ceiling(cardScore);
|
|
|
|
|
|
+ double cardScore = (double)robotCfg.cardScore * (double)robotProto.Randoms[index] / 10000;
|
|
|
|
+ fightData.cardScore = (int)Math.Ceiling(cardScore);
|
|
fightData.skillLvs.Add(robotCfg.skillLvs);
|
|
fightData.skillLvs.Add(robotCfg.skillLvs);
|
|
fightData.showSuitId = robotProto.SuitList.Count <= index ? 0 : robotProto.SuitList[index];//上赛季没有穿戴数据
|
|
fightData.showSuitId = robotProto.SuitList.Count <= index ? 0 : robotProto.SuitList[index];//上赛季没有穿戴数据
|
|
|
|
|