diff --git a/comm/const.go b/comm/const.go index 220736957..347dea09a 100644 --- a/comm/const.go +++ b/comm/const.go @@ -901,6 +901,7 @@ const ( Rtype231 TaskType = 231 // 每期循环塔达到x层 Rtype232 TaskType = 232 // 种族塔通关x阵营x层 Rtype234 TaskType = 234 // 完成多次捕羊大赛 + Rtype235 TaskType = 235 // 指定X龙的等级达到Y级 ) const ( MailLineEasy int32 = 1 // 简单 diff --git a/modules/dragon/api_train.go b/modules/dragon/api_train.go index 105097c42..8be4b0cd8 100644 --- a/modules/dragon/api_train.go +++ b/modules/dragon/api_train.go @@ -163,5 +163,10 @@ func (this *apiComp) Train(session comm.IUserSession, req *pb.DragonTrainReq) (e Dragons: chanegList, }) session.SendMsg(string(this.module.GetType()), "train", rsp) + if curLv > preLv { // 升级后统计任务 + go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) { + this.module.ModuleBuried.TriggerBuried(session, comm.GetBuriedParam2(comm.Rtype235, dragon.Dragonid, dragon.Lv)) + }) + } return }