锦标赛优化
This commit is contained in:
parent
c133d91ca7
commit
acbfd823e0
@ -597,9 +597,8 @@ func (p *Player) ChampionshipZeroUpdate() {
|
||||
if activityCfg.AId != 0 && activityCfg.AId == ChampionshipMod.AId {
|
||||
return
|
||||
}
|
||||
aid := ChampionshipMod.AId
|
||||
var items []*item.Item
|
||||
items = p.GetChampshipReward(aid)
|
||||
items = p.GetChampshipReward(ChampionshipMod.Id)
|
||||
if len(items) > 0 {
|
||||
p.SendActivityMail2(items, "backend_championship_mail_title", "backend_championship_mail_content")
|
||||
p.PushClientRes(p.GetMailMod().BackData())
|
||||
|
||||
@ -142,6 +142,14 @@ func (c *ChampshipMgr) version() {
|
||||
}
|
||||
}
|
||||
}
|
||||
if c.data.(*ChampshipData).Version == 1 {
|
||||
c.data.(*ChampshipData).Version = 2
|
||||
activityCfg := G_GameLogicPtr.ActivityMgr.GetActivityListByType(activity.ACT_TYPE_CHAMPION)
|
||||
// 如果活动ID没有变化,说明没有新的活动,不需要重置数据
|
||||
if activityCfg.AId != 0 && c.data.(*ChampshipData).Aid == 0 {
|
||||
c.data.(*ChampshipData).Aid = activityCfg.AId
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func sortChampionshipRank(rankList []*ChampshipRank) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user