上传附魔数据写入失败
This commit is contained in:
parent
f32bf350ab
commit
c4e29c067a
@ -57,9 +57,9 @@ func (this *apiComp) Ench(session comm.IUserSession, req *pb.EquipmentEnchReq) (
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
AttrValue = rand.Int31n(conf.AttrMax-conf.AttrMini) + conf.AttrMini
|
AttrValue = rand.Int31n(conf.AttrMax-conf.AttrMini) + conf.AttrMini
|
||||||
if AttrValue > equip.AdverbEntry[req.Index].Value {
|
// if AttrValue > equip.AdverbEntry[req.Index].Value {
|
||||||
equip.AdverbEntry[req.Index].EnchValue = AttrValue
|
equip.AdverbEntry[req.Index].EnchValue = AttrValue
|
||||||
}
|
// }
|
||||||
if err = this.module.modelEquipment.ChangeList(session.GetUserId(), equip.Id, map[string]interface{}{
|
if err = this.module.modelEquipment.ChangeList(session.GetUserId(), equip.Id, map[string]interface{}{
|
||||||
"adverbEntry": equip.AdverbEntry,
|
"adverbEntry": equip.AdverbEntry,
|
||||||
"isInitialState": false,
|
"isInitialState": false,
|
||||||
|
Loading…
Reference in New Issue
Block a user