狩猎副本掉落觉醒材料
This commit is contained in:
parent
465a126d21
commit
6c4726246e
@ -102,7 +102,6 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha
|
|||||||
}
|
}
|
||||||
hunting.Boss[req.BossType] += 1
|
hunting.Boss[req.BossType] += 1
|
||||||
mapData["boss"] = hunting.Boss
|
mapData["boss"] = hunting.Boss
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mapData["bossTime"] = hunting.BossTime
|
mapData["bossTime"] = hunting.BossTime
|
||||||
@ -112,6 +111,22 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha
|
|||||||
// 随机任务统计
|
// 随机任务统计
|
||||||
this.module.ModuleRtask.SendToRtask(session, comm.Rtype81, req.Difficulty, req.BossType)
|
this.module.ModuleRtask.SendToRtask(session, comm.Rtype81, req.Difficulty, req.BossType)
|
||||||
this.module.ModuleRtask.SendToRtask(session, comm.Rtype82, req.BossType)
|
this.module.ModuleRtask.SendToRtask(session, comm.Rtype82, req.BossType)
|
||||||
|
// 狩猎副本掉落觉醒材料
|
||||||
|
for _, v := range reward {
|
||||||
|
if _conf, err := this.configure.GetItemConfigureData(v.T); err == nil {
|
||||||
|
if _conf.Usetype == 8 {
|
||||||
|
this.module.ModuleRtask.SendToRtask(session, comm.Rtype153, v.N)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if newChallenge && bWin {
|
||||||
|
for _, v := range cfgHunting.Firstprize {
|
||||||
|
if _conf, err := this.configure.GetItemConfigureData(v.T); err == nil {
|
||||||
|
if _conf.Usetype == 8 {
|
||||||
|
this.module.ModuleRtask.SendToRtask(session, comm.Rtype153, v.N)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user