Procházet zdrojové kódy

竞技场加入雅集技能分

zhaoyang před 2 roky
rodič
revize
5865a0b443

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/FightDataManager.cs

@@ -264,7 +264,7 @@ namespace GFGGame
         /// <param name="cardScore"></param>
         /// <param name="skillLvs"></param>
         /// <returns></returns>
-        public long GetSkillFightScore(double itemScoreSum, int baseScore, int leagueSkillScore, int cardId, int cardScore, List<int> skillLvs)
+        public long GetSkillFightScore(double itemScoreSum, int baseScore, long leagueSkillScore, int cardId, int cardScore, List<int> skillLvs)
         {
             float skillScore = 0;
             float skillBaseScore = (long)itemScoreSum + cardScore + baseScore + leagueSkillScore;

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Data/ScoreSystemData.cs

@@ -131,7 +131,7 @@ namespace GFGGame
             double partScore = partBaseScore * ConstScoreSystem.PART_SCORE;
 
             int roleScore = roleData.baseScore;
-            int leagueSkillScore = roleData.leagueSkillScore;
+            long leagueSkillScore = roleData.leagueSkillScore;
             int cardScore = roleData.cardScore;
 
             double clickCoefficient = GetPartItemClickScore(clickType);
@@ -152,7 +152,7 @@ namespace GFGGame
             double partScore = partBaseScore * ConstScoreSystem.PART_SCORE;
 
             int roleScore = robotData.baseScore;
-            int leagueSkillScore = robotData.leagueSkillScore;
+            long leagueSkillScore = robotData.leagueSkillScore;
             int cardScore = robotData.cardScore;
 
             double clickCoefficient = GetPartItemClickScore(clickType);

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/VO/FightData.cs

@@ -8,7 +8,7 @@ namespace GFGGame
         public string name;//玩家名字
         public int scoreType;//本次战斗的主题
         public int baseScore;//角色等级分数
-        public int leagueSkillScore;//角色雅集技能分
+        public long leagueSkillScore;//角色雅集技能分
         public int cardId;//卡牌id
         public int cardScore;//卡牌对应主题的属性分数
         public string[] tags = { };////本次战斗要求的标签

+ 7 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/ArenaSproxy.cs

@@ -329,6 +329,13 @@ namespace GFGGame
                         }
                         list[i].itemList = response.DressupList[i].EquipIds;
                         list[i].cardId = response.DressupList[i].CardId;
+                        for (int j = 0; j < response.SkillAttrs.Count; j++)
+                        {
+                            if (response.SkillAttrs[i].Score == list[i].scoreType)
+                            {
+                                list[i].leagueSkillScore = response.SkillAttrs[i].Value;
+                            }
+                        }
                         List<PassivitySkillCfg> skillCfgs = PassivitySkillCfgArray.Instance.GetCfgsBycardId(response.data[i].CardId);
 
                         if (response.data[i].SkillId.Count == skillCfgs.Count)