update
This commit is contained in:
parent
ae91a6e10e
commit
64ef4708bb
@ -66,7 +66,7 @@ func (this *apiComp) Event(session comm.IUserSession, req *pb.StonehengeEventReq
|
|||||||
}
|
}
|
||||||
|
|
||||||
_, bBox := stone.Rooms.Box[req.Eventid]
|
_, bBox := stone.Rooms.Box[req.Eventid]
|
||||||
if stone.Rooms.Eventid[req.Eventid] || bBox { // 重复完成
|
if stone.Rooms.Eventid[req.Eventid] || !bBox { // 重复完成
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_StonehengeRepeatedReward,
|
Code: pb.ErrorCode_StonehengeRepeatedReward,
|
||||||
Title: pb.ErrorCode_StonehengeRepeatedReward.ToString(),
|
Title: pb.ErrorCode_StonehengeRepeatedReward.ToString(),
|
||||||
|
@ -546,6 +546,7 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha
|
|||||||
}
|
}
|
||||||
change.Ps += add
|
change.Ps += add
|
||||||
userEx.ConsumPs += -add
|
userEx.ConsumPs += -add
|
||||||
|
this.ModuleUiGame.HDPSTodayConsum(session.GetUserId(), change.Ps)
|
||||||
} else {
|
} else {
|
||||||
if change.Ps+add > ggd.PsUl {
|
if change.Ps+add > ggd.PsUl {
|
||||||
change.Ps = ggd.PsUl
|
change.Ps = ggd.PsUl
|
||||||
|
Loading…
Reference in New Issue
Block a user