上传附魔属性值

This commit is contained in:
liwei1dao 2024-01-18 14:55:50 +08:00
parent d8f937c64d
commit 343e7751c6

View File

@ -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})
} }