From 0e25bdec75609d883fdc65804749f21d1963a1e8 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Mon, 9 Jan 2023 18:13:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=B8=96=E7=95=8C=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=9F=8B=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 1 + modules/battle/module.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/comm/const.go b/comm/const.go index 82e371fd2..9603a2d1c 100644 --- a/comm/const.go +++ b/comm/const.go @@ -559,6 +559,7 @@ const ( Rtype154 TaskType = 154 //狩猎副本掉落x个觉醒材料 Rtype155 TaskType = 155 //调整助战英雄n次 Rtype156 TaskType = 156 //完成工会任务n次 + Rtype157 TaskType = 157 //战斗在xx系统中完成xx事件 ) const ( diff --git a/modules/battle/module.go b/modules/battle/module.go index da1c73ed6..0dd621ecc 100644 --- a/modules/battle/module.go +++ b/modules/battle/module.go @@ -218,5 +218,8 @@ func (this *Battle) CheckBattleReport(session comm.IUserSession, report *pb.Batt ) } this.moonfantasy.Trigger(session, report) + for _, v := range report.Completetask { + this.ModuleRtask.SendToRtask(session, comm.Rtype157, int32(report.Info.Ptype), v) + } return pb.ErrorCode_Success, true }