From 343e7751c6242e0ffc18659352196e8c36d9ffe2 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 18 Jan 2024 14:55:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=99=84=E9=AD=94=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/equipment/api_ench.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/equipment/api_ench.go b/modules/equipment/api_ench.go index 48b956899..2630fee40 100644 --- a/modules/equipment/api_ench.go +++ b/modules/equipment/api_ench.go @@ -72,8 +72,8 @@ func (this *apiComp) Ench(session comm.IUserSession, req *pb.EquipmentEnchReq) ( return } AttrValue = rand.Int31n(conf.AttrMax-conf.AttrMini) + conf.AttrMini - OldAttrValue = equip.AdverbEntry[req.Index].Value - if AttrValue > equip.AdverbEntry[req.Index].Value { + OldAttrValue = equip.AdverbEntry[req.Index].EnchValue + if AttrValue > equip.AdverbEntry[req.Index].EnchValue { equip.AdverbEntry[req.Index].EnchValue = AttrValue this.module.equipmentsChangePush(session, []*pb.DB_Equipment{equip}) }