From 181c6912e1175b91e0346b7818acb64846f52e13 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 28 Dec 2023 18:58:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=8B=E7=82=B9249=20248?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 2 ++ modules/jielong/api_result.go | 4 ++++ modules/viking/api_challengeover.go | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/comm/const.go b/comm/const.go index 29daa139c..c5295ba29 100644 --- a/comm/const.go +++ b/comm/const.go @@ -994,6 +994,8 @@ const ( Rtype245 TaskType = 245 //招募到X品质X阵营的守护者X个 Rtype246 TaskType = 246 //在一次十连内获得X个以上的Y品质的守护者 (紫色以上) Rtype247 TaskType = 247 //完成X品质的武馆派遣Y个 + Rtype248 TaskType = 248 //在维京表内指定类型的boss副本内,消耗X点体力 + Rtype249 TaskType = 249 //赢得X把快速接龙 ) const ( MailLineEasy int32 = 1 // 简单 diff --git a/modules/jielong/api_result.go b/modules/jielong/api_result.go index 8cbfa9bad..77f105dfe 100644 --- a/modules/jielong/api_result.go +++ b/modules/jielong/api_result.go @@ -51,5 +51,9 @@ func (this *apiComp) Result(session comm.IUserSession, req *pb.JielongResultReq) session.SendMsg(string(this.module.GetType()), "result", &pb.JielongResultResp{ Data: list, }) + go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) { + this.module.ModuleBuried.TriggerBuried(session, comm.GetBuriedParam(comm.Rtype249, 1)) + }) + return } diff --git a/modules/viking/api_challengeover.go b/modules/viking/api_challengeover.go index 985e906a8..d908cb86b 100644 --- a/modules/viking/api_challengeover.go +++ b/modules/viking/api_challengeover.go @@ -34,6 +34,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.VikingChal oldDifficulty int32 // 记录通关之前的难度 consumPs int32 err error + taskPs int32 ) changExp = make(map[string]int32, 0) mapData = make(map[string]interface{}, 0) @@ -90,6 +91,9 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.VikingChal pskey := req.BossId<<8 + req.Difficulty errdata, bWin = this.module.battle.CheckBattleReport(session, req.Report) consumPs = viking.Ps[pskey] + if vikingCfg.Copytype == 1 { // 买点任务体力统计 + taskPs = viking.Ps[pskey] + } viking.Ps[pskey] = 0 // 清空预扣体力值 mapData["ps"] = viking.Ps if !bWin { // 战斗失败了 直接返回 @@ -240,6 +244,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.VikingChal tasks = append(tasks, comm.GetBuriedParam(comm.Rtype172, 1)) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype181, 1, req.BossId, req.Difficulty)) } + tasks = append(tasks, comm.GetBuriedParam(comm.Rtype248, taskPs)) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype237, consumPs)) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype201, consumPs)) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype76, 1, req.BossId))