Sfoglia il codice sorgente

竞技场部件总分要包括标签分

zhaoyang 2 anni fa
parent
commit
2a18600329

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

@@ -123,7 +123,7 @@ namespace GFGGame
         {
             UI_ComValueInfo com = UI_ComValueInfo.Proxy(obj);
             com.m_scoreType.url = ResPathUtil.GetScorePath(ArenaDataManager.Instance.ThemeList[index]);
-            com.m_txtScore.text = FightDataManager.Instance.GetScore(roleDatas[index].itemScoreList).ToString();
+            com.m_txtScore.text = FightDataManager.Instance.GetScore(roleDatas[index]).ToString();
             long fightScore = ArenaDataManager.Instance.GetAllFightScore(roleDatas);
             com.m_txtFightScore.SetVar("value", fightScore.ToString()).FlushVars(); ;
             com.m_txtTagScore.text = FightDataManager.Instance.GetTagsScore(roleDatas[index].itemList, roleDatas[index].tags).ToString();

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

@@ -25,13 +25,13 @@ namespace GFGGame
         //     }
         // }
 
-        public int GetScore(List<int> itemScoreList)
+        public int GetScore(FightData roleData)
         {
             int score = 0;
 
-            for (int i = 0; i < itemScoreList.Count; i++)
+            for (int i = 0; i < roleData.itemList.Count; i++)
             {
-                score += itemScoreList[i];
+                score += ItemDataManager.GetItemAdditionScore(roleData.itemList[i], roleData.scoreType, roleData.tags);
             }
             return score;
         }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -965,7 +965,7 @@ namespace GFGGame
 
         private void UpdateScore()
         {
-            _ui.m_txtScore.text = "" + FightDataManager.Instance.GetScore(InstanceZonesDataManager.roleData.itemScoreList).ToString();
+            _ui.m_txtScore.text = "" + FightDataManager.Instance.GetScore(InstanceZonesDataManager.roleData).ToString();
             // GuideController.TryGuideDressUpFightViewBtnNext(_ui.m_btnNext);
         }