上传附魔属性值
This commit is contained in:
parent
d8f937c64d
commit
343e7751c6
@ -72,8 +72,8 @@ 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
|
||||||
OldAttrValue = equip.AdverbEntry[req.Index].Value
|
OldAttrValue = equip.AdverbEntry[req.Index].EnchValue
|
||||||
if AttrValue > equip.AdverbEntry[req.Index].Value {
|
if AttrValue > equip.AdverbEntry[req.Index].EnchValue {
|
||||||
equip.AdverbEntry[req.Index].EnchValue = AttrValue
|
equip.AdverbEntry[req.Index].EnchValue = AttrValue
|
||||||
this.module.equipmentsChangePush(session, []*pb.DB_Equipment{equip})
|
this.module.equipmentsChangePush(session, []*pb.DB_Equipment{equip})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user