1
This commit is contained in:
parent
21544741ce
commit
4a29ed08f6
@ -89,6 +89,7 @@ namespace GameLogic
|
|||||||
public long m_LikeCount;//当局点赞
|
public long m_LikeCount;//当局点赞
|
||||||
public int m_GongXian;//当局贡献
|
public int m_GongXian;//当局贡献
|
||||||
public int m_AtkCount;//当局攻击
|
public int m_AtkCount;//当局攻击
|
||||||
|
public long m_GongXianScore; // 贡献期间增加的分值
|
||||||
|
|
||||||
public void AddExp(long v)
|
public void AddExp(long v)
|
||||||
{
|
{
|
||||||
|
@ -129,7 +129,7 @@ public class DataGameModelManager : GameBase.Singleton<DataGameModelManager>
|
|||||||
postPlayRankData.name = item.Value.protCustMessageData.nickName;
|
postPlayRankData.name = item.Value.protCustMessageData.nickName;
|
||||||
postPlayRankData.score = item.Value.m_Score;
|
postPlayRankData.score = item.Value.m_Score;
|
||||||
postPlayRankData.pay = 0;
|
postPlayRankData.pay = 0;
|
||||||
postPlayRankData.winCount = item.Value.m_GongXian;
|
postPlayRankData.winCount = item.Value.m_GongXian + (item.Value.m_GongXianScore % 10000);
|
||||||
postPlayRankData.useClientData = "1";
|
postPlayRankData.useClientData = "1";
|
||||||
postPlayRankData.avatar = item.Value.protCustMessageData.imgURL;
|
postPlayRankData.avatar = item.Value.protCustMessageData.imgURL;
|
||||||
postPlayRankData.exp = item.Value.protCustMessageData.rankRo.exp;
|
postPlayRankData.exp = item.Value.protCustMessageData.rankRo.exp;
|
||||||
|
@ -299,6 +299,12 @@ namespace GameLogic
|
|||||||
// 增加礼物积分
|
// 增加礼物积分
|
||||||
unitPlayerData.m_Score += (int)(giftConfig.AddGiftScore * num * m_ScoreScale);
|
unitPlayerData.m_Score += (int)(giftConfig.AddGiftScore * num * m_ScoreScale);
|
||||||
|
|
||||||
|
// 贡献期间增加的分
|
||||||
|
if (DataGameSceneManager.Instance.isLiShiShiJian)
|
||||||
|
{
|
||||||
|
unitPlayerData.m_GongXianScore += (int)(giftConfig.AddGiftScore * num * m_ScoreScale);
|
||||||
|
}
|
||||||
|
|
||||||
// 增加人物经验值
|
// 增加人物经验值
|
||||||
unitPlayerData.AddExp(giftConfig.AddGiftExp * num);
|
unitPlayerData.AddExp(giftConfig.AddGiftExp * num);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user