需求单 21936 狩猎掉落组升级

This commit is contained in:
meixiongfeng 2023-05-18 15:00:32 +08:00
parent 65e87aaf09
commit c2c20474f0

View File

@ -98,7 +98,9 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha
this.module.CheckRank(session.GetUserId(), req.BossType, req.Difficulty, req.Report, userinfo) this.module.CheckRank(session.GetUserId(), req.BossType, req.Difficulty, req.Report, userinfo)
} }
// 发放通关随机奖励 // 发放通关随机奖励
reward = this.module.configure.GetDropReward(cfgHunting.Drop) // 获取掉落奖励 //reward = this.module.configure.GetDropReward(cfgHunting.Drop) // 获取掉落奖励
user := this.module.ModuleUser.GetUser(session.GetUserId())
reward = this.module.ModuleTools.GetGroupDataByLottery(cfgHunting.Drop, user.Vip, user.Lv) // 走新的掉落
for _, v := range reward { for _, v := range reward {
bFound := false bFound := false
if v.A == "equp" { if v.A == "equp" {