This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-06-13 01:43:11 +08:00
parent 21544741ce
commit 4a29ed08f6
3 changed files with 8 additions and 1 deletions

View File

@ -89,6 +89,7 @@ namespace GameLogic
public long m_LikeCount;//当局点赞
public int m_GongXian;//当局贡献
public int m_AtkCount;//当局攻击
public long m_GongXianScore; // 贡献期间增加的分值
public void AddExp(long v)
{

View File

@ -129,7 +129,7 @@ public class DataGameModelManager : GameBase.Singleton<DataGameModelManager>
postPlayRankData.name = item.Value.protCustMessageData.nickName;
postPlayRankData.score = item.Value.m_Score;
postPlayRankData.pay = 0;
postPlayRankData.winCount = item.Value.m_GongXian;
postPlayRankData.winCount = item.Value.m_GongXian + (item.Value.m_GongXianScore % 10000);
postPlayRankData.useClientData = "1";
postPlayRankData.avatar = item.Value.protCustMessageData.imgURL;
postPlayRankData.exp = item.Value.protCustMessageData.rankRo.exp;

View File

@ -299,6 +299,12 @@ namespace GameLogic
// 增加礼物积分
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);