|
@@ -128,7 +128,7 @@ namespace GFGGame
|
|
|
FightRoleData roleData = ArenaDataManager.Instance.DressupList[i];
|
|
|
roleData.scoreType = scoreType;
|
|
|
roleData.itemList = ArenaDataManager.Instance.GetRecommentItemList(scoreType, roleData.tags);
|
|
|
- roleData.cardId = FightDataManager.Instance.SortCardList(CardDataManager.GetCardListByRarity(0), roleData.itemList, scoreType)[0].id;
|
|
|
+ roleData.cardId = ArenaDataManager.Instance.GetRecommentCardId(scoreType, roleData.itemList);
|
|
|
roleData.cardScore = ItemDataManager.GetItemAdditionScore(roleData.cardId, roleData.scoreType, roleData.tags);
|
|
|
roleData.skillLvs = SkillDataManager.Instance.GetSkillLvs(roleData.cardId);
|
|
|
FightDataManager.Instance.SetItemScoreList(roleData);
|
|
@@ -172,6 +172,7 @@ namespace GFGGame
|
|
|
}
|
|
|
_ui.m_comCard.m_c1.selectedIndex = 1;
|
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(cardId);
|
|
|
+ _ui.m_comCard.m_txtCardName.text = itemCfg.name;
|
|
|
_ui.m_comCard.m_comCard.m_loaCard.url = ResPathUtil.GetCardSmallPath(itemCfg.res);
|
|
|
_ui.m_comCard.m_loaScore.url = ResPathUtil.GetScorePath(ArenaDataManager.Instance.ThemeList[_themeIndex]);
|
|
|
RarityIconController.UpdateRarityIcon(_ui.m_comCard.m_loaRarity, cardId, false);
|