From c4e29c067a68e73add9889c614158c8c5985c8a9 Mon Sep 17 00:00:00 2001 From: liwei Date: Mon, 14 Nov 2022 16:08:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=99=84=E9=AD=94=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=86=99=E5=85=A5=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/equipment/api_ench.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/equipment/api_ench.go b/modules/equipment/api_ench.go index f8f7571fd..806d37be5 100644 --- a/modules/equipment/api_ench.go +++ b/modules/equipment/api_ench.go @@ -57,9 +57,9 @@ func (this *apiComp) Ench(session comm.IUserSession, req *pb.EquipmentEnchReq) ( return } AttrValue = rand.Int31n(conf.AttrMax-conf.AttrMini) + conf.AttrMini - if AttrValue > equip.AdverbEntry[req.Index].Value { - equip.AdverbEntry[req.Index].EnchValue = AttrValue - } + // if AttrValue > equip.AdverbEntry[req.Index].Value { + equip.AdverbEntry[req.Index].EnchValue = AttrValue + // } if err = this.module.modelEquipment.ChangeList(session.GetUserId(), equip.Id, map[string]interface{}{ "adverbEntry": equip.AdverbEntry, "isInitialState": false,