埋点249 248
This commit is contained in:
parent
ceac14908d
commit
181c6912e1
@ -994,6 +994,8 @@ const (
|
|||||||
Rtype245 TaskType = 245 //招募到X品质X阵营的守护者X个
|
Rtype245 TaskType = 245 //招募到X品质X阵营的守护者X个
|
||||||
Rtype246 TaskType = 246 //在一次十连内获得X个以上的Y品质的守护者 (紫色以上)
|
Rtype246 TaskType = 246 //在一次十连内获得X个以上的Y品质的守护者 (紫色以上)
|
||||||
Rtype247 TaskType = 247 //完成X品质的武馆派遣Y个
|
Rtype247 TaskType = 247 //完成X品质的武馆派遣Y个
|
||||||
|
Rtype248 TaskType = 248 //在维京表内指定类型的boss副本内,消耗X点体力
|
||||||
|
Rtype249 TaskType = 249 //赢得X把快速接龙
|
||||||
)
|
)
|
||||||
const (
|
const (
|
||||||
MailLineEasy int32 = 1 // 简单
|
MailLineEasy int32 = 1 // 简单
|
||||||
|
@ -51,5 +51,9 @@ func (this *apiComp) Result(session comm.IUserSession, req *pb.JielongResultReq)
|
|||||||
session.SendMsg(string(this.module.GetType()), "result", &pb.JielongResultResp{
|
session.SendMsg(string(this.module.GetType()), "result", &pb.JielongResultResp{
|
||||||
Data: list,
|
Data: list,
|
||||||
})
|
})
|
||||||
|
go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {
|
||||||
|
this.module.ModuleBuried.TriggerBuried(session, comm.GetBuriedParam(comm.Rtype249, 1))
|
||||||
|
})
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.VikingChal
|
|||||||
oldDifficulty int32 // 记录通关之前的难度
|
oldDifficulty int32 // 记录通关之前的难度
|
||||||
consumPs int32
|
consumPs int32
|
||||||
err error
|
err error
|
||||||
|
taskPs int32
|
||||||
)
|
)
|
||||||
changExp = make(map[string]int32, 0)
|
changExp = make(map[string]int32, 0)
|
||||||
mapData = make(map[string]interface{}, 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
|
pskey := req.BossId<<8 + req.Difficulty
|
||||||
errdata, bWin = this.module.battle.CheckBattleReport(session, req.Report)
|
errdata, bWin = this.module.battle.CheckBattleReport(session, req.Report)
|
||||||
consumPs = viking.Ps[pskey]
|
consumPs = viking.Ps[pskey]
|
||||||
|
if vikingCfg.Copytype == 1 { // 买点任务体力统计
|
||||||
|
taskPs = viking.Ps[pskey]
|
||||||
|
}
|
||||||
viking.Ps[pskey] = 0 // 清空预扣体力值
|
viking.Ps[pskey] = 0 // 清空预扣体力值
|
||||||
mapData["ps"] = viking.Ps
|
mapData["ps"] = viking.Ps
|
||||||
if !bWin { // 战斗失败了 直接返回
|
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.Rtype172, 1))
|
||||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype181, 1, req.BossId, req.Difficulty))
|
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.Rtype237, consumPs))
|
||||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype201, consumPs))
|
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype201, consumPs))
|
||||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype76, 1, req.BossId))
|
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype76, 1, req.BossId))
|
||||||
|
Loading…
Reference in New Issue
Block a user