This commit is contained in:
wh_zcy 2023-06-06 17:43:33 +08:00
commit 851568b29b
3 changed files with 19 additions and 19 deletions

View File

@ -674,6 +674,7 @@ const (
Rtype186 TaskType = 186 //武馆的派遣悬赏X次(接取任务后开始计算当玩家的派遣完成1次进度便加一不领奖也算一次只要倒计时结束即可)
Rtype187 TaskType = 187
Rtype188 TaskType = 188 //玩家创建1个工会
Rtype189 TaskType = 189 //铁匠铺进行一次定制
)
const (

View File

@ -309,6 +309,23 @@ func (this *apiComp) ForgeEquip(session comm.IUserSession, req *pb.SmithyForgeEq
}(v.CId, equipConf.Star, int32(len(v.AdverbEntry)+1)) // 品质按副词条数+1 来算
}
}
this.module.SendRdTask(session, atno)
var equip map[int32]int32 // key xingji value 数量
equip = make(map[int32]int32, 0)
tasks := make([]*pb.BuriedParam, 0)
for _, v := range atno {
if cfg := this.module.configure.GetEquipmentConfigureById(v.T); cfg != nil {
equip[cfg.Star]++
}
}
for k, v := range equip {
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype51, v, k))
}
// 定制
if req.SuiteId != 0 {
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype189, req.Count)) // 进行N次定制打造
}
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype148, int32(len(equip))))
this.module.ModuleBuried.TriggerBuried(session.GetUserId(), tasks...)
return
}

View File

@ -119,21 +119,3 @@ func (this *Smithy) CheckActivateAtlasCollect(uid string, id string) {
}
return
}
func (this *Smithy) SendRdTask(session comm.IUserSession, Items []*pb.UserAtno) {
var equip map[int32]int32 // key xingji value 数量
equip = make(map[int32]int32, 0)
tasks := make([]*pb.BuriedParam, 0)
for _, v := range Items {
if cfg := this.configure.GetEquipmentConfigureById(v.T); cfg != nil {
equip[cfg.Star]++
}
}
for k, v := range equip {
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype51, v, k))
// this.ModuleBuried.SendToRtask(session, comm.Rtype148, v, k)
}
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype148, int32(len(equip))))
this.ModuleBuried.TriggerBuried(session.GetUserId(), tasks...)
}