高级运输且没有被掠夺奖励
This commit is contained in:
parent
a5402e1be0
commit
8964c55477
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user