随机宝箱代码修复
This commit is contained in:
parent
bb431cefe9
commit
5c4f21a3a9
@ -91,7 +91,7 @@ func (this *apiComp) Useitem(session comm.IUserSession, req *pb.ItemsUseItemReq)
|
||||
return
|
||||
}
|
||||
sale := make([]*cfg.Gameatn, 0)
|
||||
for range sale {
|
||||
for i := uint32(0); i < req.Amount; i++ {
|
||||
sale = append(sale, RandomProps(prop).Prize...)
|
||||
}
|
||||
if code = this.module.AddItemforGrid(session, req.GridId, -1*int32(req.Amount), true); code != pb.ErrorCode_Success {
|
||||
|
Loading…
Reference in New Issue
Block a user