From 8964c5547712e933354f03cc698c2ded5f631710 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Sun, 18 Feb 2024 16:14:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E7=BA=A7=E8=BF=90=E8=BE=93=E4=B8=94?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=A2=AB=E6=8E=A0=E5=A4=BA=E5=A5=96=E5=8A=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/plunder/api_reach.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/plunder/api_reach.go b/modules/plunder/api_reach.go index 049519f19..72b3fdad6 100644 --- a/modules/plunder/api_reach.go +++ b/modules/plunder/api_reach.go @@ -111,10 +111,8 @@ func (this *apiComp) Reach(session comm.IUserSession, req *pb.PlunderReachReq) ( this.module.ModuleUser.AddUserHidenum(session, conf.Hidenum) } else { res = append(res, conf.Exreward...) // 高级奖励 - if !bPlunder { // 掠夺成功 + if !bPlunder { // 没有被掠夺 res = append(res, conf.Keepreward...) - } else { - list.Score += conf.Numitem.N land.Score[session.GetUserId()] = list.Score 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 { return } - if bExReward { + if bExReward && !bPlunder { // 高级运输且没用被掠夺 if conf.Numitem.N > 0 { atno = append(atno, &pb.UserAtno{ A: conf.Numitem.A,