|
@@ -46,6 +46,10 @@ namespace GFGGame
|
|
|
CardData cardData = CardDataManager.GetCardDataById(response.CardId);
|
|
|
cardData.lv = response.CardLvl;
|
|
|
cardData.exp = response.CardExp;
|
|
|
+ for (int i = 0; i < response.KsAttribute.Count; i++)
|
|
|
+ {
|
|
|
+ cardData.scores[response.KsAttribute[i]] = response.VsAttribute[i];
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
@@ -61,6 +65,10 @@ namespace GFGGame
|
|
|
{
|
|
|
CardData cardData = CardDataManager.GetCardDataById(response.CardId);
|
|
|
cardData.star = response.CardStar;
|
|
|
+ for (int i = 0; i < response.KsAttribute.Count; i++)
|
|
|
+ {
|
|
|
+ cardData.scores[response.KsAttribute[i]] = response.VsAttribute[i];
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
@@ -69,8 +77,8 @@ namespace GFGGame
|
|
|
//resIndex:0默认,1特殊
|
|
|
public static async ETTask<bool> ChangeCardRes(int cardId, int resIndex)
|
|
|
{
|
|
|
- M2C_ChangeCardLvl response = null;
|
|
|
- response = (M2C_ChangeCardLvl)await MessageHelper.SendToServer(new C2M_ChangeCardLvl() { CardId = cardId, ResIndex = resIndex });
|
|
|
+ M2C_ChangeCardRes response = null;
|
|
|
+ response = (M2C_ChangeCardRes)await MessageHelper.SendToServer(new C2M_ChangeCardRes() { CardId = cardId, ResIndex = resIndex });
|
|
|
if (response != null)
|
|
|
{
|
|
|
if (response.Error == ErrorCode.ERR_Success)
|