积分倍率提交
This commit is contained in:
parent
aa805f7b53
commit
fea951c256
@ -32,8 +32,7 @@ namespace GameLogic
|
||||
public List<GiftItemData> m_GiftItemDatas = new List<GiftItemData>();
|
||||
|
||||
public MeshRenderer m_PanelBg;
|
||||
//public TextureManager m_TextureManager;
|
||||
|
||||
public float m_ScoreScale = 1f; // 积分缩放比例
|
||||
private int m_UpdateShowEmoTimer = -1;
|
||||
|
||||
public long m_AllTeamPush = 0;
|
||||
@ -271,13 +270,13 @@ namespace GameLogic
|
||||
|
||||
|
||||
// 增加礼物积分
|
||||
unitPlayerData.m_Score += giftConfig.AddGiftScore * num;
|
||||
unitPlayerData.m_Score += (int)(giftConfig.AddGiftScore * num * m_ScoreScale);
|
||||
|
||||
// 增加人物经验值
|
||||
unitPlayerData.AddExp(giftConfig.AddGiftExp * num);
|
||||
|
||||
// 增加积分池
|
||||
ScoreAllValue += giftConfig.AddGiftScore * num;
|
||||
ScoreAllValue += (int)(giftConfig.AddGiftScore * num * m_ScoreScale);
|
||||
|
||||
// 触发检测朝代变换
|
||||
CheckGameValue();
|
||||
@ -650,6 +649,10 @@ namespace GameLogic
|
||||
{
|
||||
// 切换朝代
|
||||
m_TeamId = id;
|
||||
|
||||
|
||||
m_ScoreScale = ConfigSystem.Instance.Tables.TbTeamConfig.DataList[m_TeamId].ScoreValue;
|
||||
|
||||
GameEvent.Send(EventConts.SwitchTeamId);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user