赛季通行证账变记录
This commit is contained in:
parent
83cfbe6381
commit
2e34c33768
|
|
@ -287,8 +287,8 @@ const (
|
||||||
GainWaySign7Add = 91 // 累计签到进阶奖励获得
|
GainWaySign7Add = 91 // 累计签到进阶奖励获得
|
||||||
GainWayItemChange = 92 //背包内使用道具兑换话费
|
GainWayItemChange = 92 //背包内使用道具兑换话费
|
||||||
GainWayPetSkillLevelUp = 93 //宠物技能升级
|
GainWayPetSkillLevelUp = 93 //宠物技能升级
|
||||||
GainWayPermitAward = 94 // 赛季通行证普通奖励
|
GainWayPermitAward = 94 // 赛季通行证奖励
|
||||||
GainWayPermitAwardSupper = 95 // 赛季通行证典藏奖励
|
GainWayItemPermitRank = 95 // 赛季通行证排行奖励
|
||||||
GainWayPermitExchangeCost = 96 // 赛季通行证兑换消耗
|
GainWayPermitExchangeCost = 96 // 赛季通行证兑换消耗
|
||||||
GainWayPermitExchangeGain = 97 // 赛季通行证兑换获得
|
GainWayPermitExchangeGain = 97 // 赛季通行证兑换获得
|
||||||
GainWayItemTaskPermit = 98 // 赛季通行证任务
|
GainWayItemTaskPermit = 98 // 赛季通行证任务
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ const (
|
||||||
MSGTYPE_ITEM //获取道具
|
MSGTYPE_ITEM //获取道具
|
||||||
MSGTYPE_RANK_REWARD //排行榜奖励
|
MSGTYPE_RANK_REWARD //排行榜奖励
|
||||||
MSGTYPE_ITEM_CHANGE //背包使用兑换
|
MSGTYPE_ITEM_CHANGE //背包使用兑换
|
||||||
|
MSGTYPE_RANK_PermitReward // 通行证排行奖励
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -110,8 +110,7 @@ const (
|
||||||
SystemFreeGive_GiveType_TaskAchievement // 成就任务
|
SystemFreeGive_GiveType_TaskAchievement // 成就任务
|
||||||
SystemFreeGive_GiveType_TaskEveryDay // 每日任务
|
SystemFreeGive_GiveType_TaskEveryDay // 每日任务
|
||||||
SystemFreeGive_GiveType_TaskWeekActive // 周活跃奖励
|
SystemFreeGive_GiveType_TaskWeekActive // 周活跃奖励
|
||||||
SystemFreeGive_GiveType_PermitAward // 赛季通行证普通奖励
|
SystemFreeGive_GiveType_PermitAward // 赛季通行证奖励
|
||||||
SystemFreeGive_GiveType_PermitAwardSupper // 赛季通行证典藏奖励
|
|
||||||
SystemFreeGive_GiveType_TaskPermit // 赛季通行证任务
|
SystemFreeGive_GiveType_TaskPermit // 赛季通行证任务
|
||||||
)
|
)
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -539,8 +539,8 @@ func SendPermitReward(p *Player, m map[int64]int64, tp int32) {
|
||||||
gain = common.GainWayPermitAward
|
gain = common.GainWayPermitAward
|
||||||
giveType = model.SystemFreeGive_GiveType_PermitAward
|
giveType = model.SystemFreeGive_GiveType_PermitAward
|
||||||
case 2:
|
case 2:
|
||||||
gain = common.GainWayPermitAwardSupper
|
gain = common.GainWayPermitAward
|
||||||
giveType = model.SystemFreeGive_GiveType_PermitAwardSupper
|
giveType = model.SystemFreeGive_GiveType_PermitAward
|
||||||
}
|
}
|
||||||
BagMgrSingleton.AddItems(p, items, 0, gain, "system", "通行证奖励", 0, 0, false)
|
BagMgrSingleton.AddItems(p, items, 0, gain, "system", "通行证奖励", 0, 0, false)
|
||||||
for _, v := range items {
|
for _, v := range items {
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ func (r *PermitMgr) OnDayTimer() {
|
||||||
task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} {
|
task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} {
|
||||||
title := i18n.Tr("languages", "PermitAwardTitle")
|
title := i18n.Tr("languages", "PermitAwardTitle")
|
||||||
content := i18n.Tr("languages", "PermitAward", []int{rank, rank, rank, rank})
|
content := i18n.Tr("languages", "PermitAward", []int{rank, rank, rank, rank})
|
||||||
newMsg = model.NewMessage("", 0, "", curPlayer.SnId, model.MSGTYPE_RANK_REWARD,
|
newMsg = model.NewMessage("", 0, "", curPlayer.SnId, model.MSGTYPE_RANK_PermitReward,
|
||||||
title, content, 0, 0, model.MSGSTATE_UNREAD, time.Now().Unix(), 0, "", items, platform, model.HallTienlen, nil)
|
title, content, 0, 0, model.MSGSTATE_UNREAD, time.Now().Unix(), 0, "", items, platform, model.HallTienlen, nil)
|
||||||
err := model.InsertMessage(platform, newMsg)
|
err := model.InsertMessage(platform, newMsg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
|
|
@ -1216,6 +1216,10 @@ func (this *Player) GetMessageAttach(id string) {
|
||||||
remark = "排位赛段位奖励"
|
remark = "排位赛段位奖励"
|
||||||
gainWay = common.GainWay_RankMatch
|
gainWay = common.GainWay_RankMatch
|
||||||
addItem()
|
addItem()
|
||||||
|
case model.MSGTYPE_RANK_PermitReward:
|
||||||
|
remark = "通行证排行奖励"
|
||||||
|
gainWay = common.GainWayItemPermitRank
|
||||||
|
addItem()
|
||||||
}
|
}
|
||||||
if msg.Coin > 0 {
|
if msg.Coin > 0 {
|
||||||
this.AddCoin(msg.Coin, 0, gainWay, msg.Id.Hex(), remark)
|
this.AddCoin(msg.Coin, 0, gainWay, msg.Id.Hex(), remark)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue