高级运输且没有被掠夺奖励

This commit is contained in:
meixiongfeng 2024-02-18 16:14:56 +08:00
parent a5402e1be0
commit 8964c55477

View File

@ -111,10 +111,8 @@ func (this *apiComp) Reach(session comm.IUserSession, req *pb.PlunderReachReq) (
this.module.ModuleUser.AddUserHidenum(session, conf.Hidenum) this.module.ModuleUser.AddUserHidenum(session, conf.Hidenum)
} else { } else {
res = append(res, conf.Exreward...) // 高级奖励 res = append(res, conf.Exreward...) // 高级奖励
if !bPlunder { // 掠夺成功 if !bPlunder { // 没有被掠夺
res = append(res, conf.Keepreward...) res = append(res, conf.Keepreward...)
} else {
list.Score += conf.Numitem.N list.Score += conf.Numitem.N
land.Score[session.GetUserId()] = list.Score land.Score[session.GetUserId()] = list.Score
this.module.ModuleUser.AddUserHidenum(session, conf.Hidenum) this.module.ModuleUser.AddUserHidenum(session, conf.Hidenum)
@ -124,7 +122,7 @@ func (this *apiComp) Reach(session comm.IUserSession, req *pb.PlunderReachReq) (
if errdata, atno = this.module.DispenseAtno(session, res, true); errdata != nil { if errdata, atno = this.module.DispenseAtno(session, res, true); errdata != nil {
return return
} }
if bExReward { if bExReward && !bPlunder { // 高级运输且没用被掠夺
if conf.Numitem.N > 0 { if conf.Numitem.N > 0 {
atno = append(atno, &pb.UserAtno{ atno = append(atno, &pb.UserAtno{
A: conf.Numitem.A, A: conf.Numitem.A,