From 579c5791185e7faffc1506cfc4b2d77e83ec8bd5 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Mon, 6 Jan 2025 14:46:36 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E7=B4=AF=E6=B6=88=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E8=B4=A6=E5=8F=98=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/constant.go | 1 + worldsrv/taskmgr.go | 2 ++ 2 files changed, 3 insertions(+) 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,