diff --git a/common/constant.go b/common/constant.go index 93a3904..01e8fcd 100644 --- a/common/constant.go +++ b/common/constant.go @@ -340,6 +340,7 @@ const ( GainWayNianGain_Attack_BigOther = 129 //年兽活动大爆竹攻击年兽获得额外奖励 GainWayNianGain_Attack_BigGuarantee = 130 //年兽活动大爆竹攻击年兽获得保底奖励 GainWayNianGain_Attack_Coin = 131 //攻击年兽获得金币奖励 + GainWayConsume = 132 //累消活动获得 ) // 后台选择 金币变化类型 的充值 类型id号起始 diff --git a/worldsrv/taskmgr.go b/worldsrv/taskmgr.go index e453e87..cb81a20 100644 --- a/worldsrv/taskmgr.go +++ b/worldsrv/taskmgr.go @@ -402,6 +402,8 @@ func SendTaskReward(p *Player, m map[int64]int64, tp int32) { case 6: gain = common.GainWayItemTaskPermit giveType = model.SystemFreeGive_GiveType_TaskPermit + case 10: + gain = common.GainWayConsume } BagMgrSingleton.AddItems(&model.AddItemParam{ Platform: p.Platform,