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 }