新任务埋点数据
This commit is contained in:
parent
92ff2ee31e
commit
275ee9e1b1
@ -633,6 +633,11 @@ const (
|
||||
Rtype159 TaskType = 159 //主线第X章关卡全部达到三星
|
||||
Rtype160 TaskType = 160 //主线总星数达到X星
|
||||
Rtype161 TaskType = 161 //在自动战斗过程中完成另一场战斗
|
||||
|
||||
Rtype168 TaskType = 168 //完成功夫大师挑战塔第X层
|
||||
Rtype169 TaskType = 169 //触发指定套装的套装效果
|
||||
Rtype170 TaskType = 170 //获得指定材料X个
|
||||
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -180,6 +180,7 @@ func (this *apiComp) Equip(session comm.IUserSession, req *pb.EquipmentEquipReq)
|
||||
if hero.SuiteId != 0 {
|
||||
tasks = append(tasks, comm.GettaskParam(comm.Rtype49, 1, hero.Suite1Star, hero.Suite1Lv))
|
||||
tasks = append(tasks, comm.GettaskParam(comm.Rtype98, 1, hero.Suite1Lv))
|
||||
tasks = append(tasks, comm.GettaskParam(comm.Rtype169, hero.SuiteId))
|
||||
// this.module.ModuleRtask.SendToRtask(session, comm.Rtype49, 1, hero.Suite1Star, hero.Suite1Lv)
|
||||
// this.module.ModuleRtask.SendToRtask(session, comm.Rtype98, 1, hero.Suite1Lv)
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ import (
|
||||
"go_dreamfactory/sys/configure"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
"go_dreamfactory/sys/db"
|
||||
"go_dreamfactory/utils"
|
||||
"math"
|
||||
"time"
|
||||
|
||||
@ -293,6 +294,9 @@ func (this *ModelItemsComp) AddItemsToUserPack(uId string, items map[string]int3
|
||||
return
|
||||
}
|
||||
change = append(change, add...)
|
||||
//
|
||||
go this.module.ModuleRtask.TriggerTask(uId, comm.GettaskParam(comm.Rtype170, utils.ToInt32(k), v))
|
||||
|
||||
}
|
||||
if len(del) > 0 {
|
||||
if err = this.DeleteUserPack(uId, del...); err != nil {
|
||||
|
@ -144,6 +144,6 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PagodaChal
|
||||
return
|
||||
}
|
||||
// 任务相关
|
||||
this.module.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype58, 1), comm.GettaskParam(comm.Rtype59, pagoda.PagodaId))
|
||||
go this.module.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype168, conf.Tab, pagoda.Data[conf.Tab]))
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user