diff --git a/comm/const.go b/comm/const.go index db2252854..28c2a7c73 100644 --- a/comm/const.go +++ b/comm/const.go @@ -844,6 +844,19 @@ const ( Rtype212 TaskType = 212 // 接取任务后,商队抵达指定城市 Rtype213 TaskType = 213 // 消耗X体力 Rtype214 TaskType = 214 // 获得x充值积分 + Rtype215 TaskType = 215 // 首次触发指定ID的事件 + Rtype216 TaskType = 216 // 上阵英雄都为指定职业,击败石阵秘境中指定关卡的首领 + Rtype217 TaskType = 217 // 携带指定ID的buff,击败石阵秘境中指定关卡的首领 + Rtype218 TaskType = 218 // 携带指定类型、≥指定数量的buff,击败石阵秘境中指定关卡的首领 + Rtype219 TaskType = 219 // 累计击败石阵秘境任意关卡的首领N次 + Rtype220 TaskType = 220 // 在石阵秘境的强化商店中,强化N次buff(事件类型:29) + Rtype221 TaskType = 221 // 累计获得N个指定类型的buff + Rtype222 TaskType = 222 // 击败指定关卡的首领时,背包中指定道具数量≥指定数量 + Rtype223 TaskType = 223 // 触发指定类型的事件累计N次 + Rtype224 TaskType = 224 // 击败石阵秘境中指定关卡的首领时,每名上阵英雄血量≤比例(千分比) + Rtype225 TaskType = 225 // 在石阵秘境中,挑战指定类型的战斗关卡(普通:14,首领:28),失败N次 + Rtype226 TaskType = 226 // 击败石阵秘境中指定关卡的首领时,背包中指定道具数量=指定数量 + Rtype227 TaskType = 227 // 指定ID战斗失败 ) const ( MailLineEasy int32 = 1 // 简单 diff --git a/modules/wtask/api_battlefinish.go b/modules/wtask/api_battlefinish.go index 502d086d7..4b196a353 100644 --- a/modules/wtask/api_battlefinish.go +++ b/modules/wtask/api_battlefinish.go @@ -67,10 +67,11 @@ func (this *apiComp) BattleFinish(session comm.IUserSession, req *pb.WTaskBattle go this.module.ModuleBuried.TriggerBuried(session.Clone(), comm.GetBuriedParam(comm.Rtype70, 1, req.BattleConfId)) } } else { - this.module.Error("世界任务战斗失败", - log.Field{Key: "uid", Value: session.GetUserId()}, - log.Field{Key: "isWin", Value: isWin}, - ) + go this.module.ModuleBuried.TriggerBuried(session.Clone(), comm.GetBuriedParam(comm.Rtype227, 1, req.BattleConfId)) + // this.module.Error("世界任务战斗失败", + // log.Field{Key: "uid", Value: session.GetUserId()}, + // log.Field{Key: "isWin", Value: isWin}, + // ) } session.SendMsg(string(this.module.GetType()), "battlefinish", &pb.WTaskBattleFinishResp{BattleConfId: req.BattleConfId}) return