This commit is contained in:
liwei1dao 2023-03-10 16:24:04 +08:00
commit 346b858bc9

View File

@ -95,24 +95,11 @@ func (this *Hero) createRepeatHero(session comm.IUserSession, heroCfgId string,
// 查品质
cfg := this.configure.GetHeroConfig(heroCfgId)
if cfg != nil {
// this.ModuleRtask.SendToRtask(session, comm.Rtype1, utils.ToInt32(heroCfgId))
// this.ModuleRtask.SendToRtask(session, comm.Rtype30, 1, cfg.Color)
// this.ModuleRtask.SendToRtask(session, comm.Rtype31, 1, cfg.Color)
var (
szTask []*comm.TaskParam
)
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype1,
Params: []int32{utils.ToInt32(heroCfgId)},
})
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype30,
Params: []int32{1, cfg.Color},
})
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype31,
Params: []int32{1, cfg.Color},
})
var szTask []*comm.TaskParam
szTask = append(szTask, comm.GettaskParam(comm.Rtype1, utils.ToInt32(heroCfgId)))
szTask = append(szTask, comm.GettaskParam(comm.Rtype30, cfg.Color))
szTask = append(szTask, comm.GettaskParam(comm.Rtype31, cfg.Color))
this.ModuleRtask.TriggerTask(session.GetUserId(), szTask...)
}
@ -744,79 +731,34 @@ func (this *Hero) SendTaskMsg(session comm.IUserSession, szStar []int32, drawCou
sz[star]++
}
for k := range sz {
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype17,
Params: []int32{1, k},
})
szTask = append(szTask, comm.GettaskParam(comm.Rtype17, 1, k))
//this.ModuleRtask.SendToRtask(session, comm.Rtype17, 1, k)
}
}
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype18,
Params: []int32{drawCount},
})
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype141,
Params: []int32{drawCount},
})
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype143,
Params: []int32{drawCount},
})
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype145,
Params: []int32{drawCount},
})
// this.ModuleRtask.SendToRtask(session, comm.Rtype18, drawCount)
// this.ModuleRtask.SendToRtask(session, comm.Rtype141, drawCount)
// this.ModuleRtask.SendToRtask(session, comm.Rtype143, drawCount)
// this.ModuleRtask.SendToRtask(session, comm.Rtype145, drawCount)
szTask = append(szTask, comm.GettaskParam(comm.Rtype18, drawCount))
szTask = append(szTask, comm.GettaskParam(comm.Rtype141, drawCount))
szTask = append(szTask, comm.GettaskParam(comm.Rtype143, drawCount))
szTask = append(szTask, comm.GettaskParam(comm.Rtype145, drawCount))
} else { // 阵营招募
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype19,
Params: []int32{drawCount},
})
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype142,
Params: []int32{drawCount},
})
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype144,
Params: []int32{drawCount},
})
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype146,
Params: []int32{drawCount},
})
szTask = append(szTask, comm.GettaskParam(comm.Rtype19, drawCount))
szTask = append(szTask, comm.GettaskParam(comm.Rtype142, drawCount))
szTask = append(szTask, comm.GettaskParam(comm.Rtype144, drawCount))
szTask = append(szTask, comm.GettaskParam(comm.Rtype146, drawCount))
if drawCount == 10 {
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype91,
Params: []int32{1},
})
szTask = append(szTask, comm.GettaskParam(comm.Rtype91, 1))
}
}
for _, star := range szStar {
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype16,
Params: []int32{star, 1},
})
//this.ModuleRtask.SendToRtask(session, comm.Rtype16, star, 1)
szTask = append(szTask, comm.GettaskParam(comm.Rtype16, star, 1))
}
if drawCount == 10 {
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype90,
Params: []int32{1},
})
//this.ModuleRtask.SendToRtask(session, comm.Rtype90, 1)
szTask = append(szTask, comm.GettaskParam(comm.Rtype90, 1))
}
szTask = append(szTask, &comm.TaskParam{
TT: comm.Rtype89,
Params: []int32{drawCount},
})
//this.ModuleRtask.SendToRtask(session, comm.Rtype89, drawCount)
szTask = append(szTask, comm.GettaskParam(comm.Rtype89, drawCount))
this.ModuleRtask.TriggerTask(session.GetUserId(), szTask...)
}