上传道具使用配置
This commit is contained in:
parent
46cdc69c14
commit
991c40f416
@ -37,8 +37,12 @@ func (this *apiComp) Useitem(session comm.IUserSession, req *pb.ItemsUseItemReq)
|
||||
}
|
||||
switch itemcf.Usetype {
|
||||
case 4:
|
||||
sale := make([]*cfg.Game_atn, len(itemcf.Sale))
|
||||
for i, v := range itemcf.Sale {
|
||||
if prop, err = this.module.configure.GetPropsgroupConfigure(itemcf.BoxId); err != nil {
|
||||
code = pb.ErrorCode_ConfigNoFound
|
||||
return
|
||||
}
|
||||
sale := make([]*cfg.Game_atn, len(prop.Prize))
|
||||
for i, v := range prop.Prize {
|
||||
sale[i] = v
|
||||
sale[i].N = v.N * int32(req.Amount)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user