From bd8055d88397278501c5a0cf2c4d49ac0343917f Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 21 Sep 2023 16:42:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=81=93=E5=85=B7=E5=88=86?= =?UTF-8?q?=E8=A7=A3=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/items/modelitems.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/items/modelitems.go b/modules/items/modelitems.go index 87ee5369e..415518e9a 100644 --- a/modules/items/modelitems.go +++ b/modules/items/modelitems.go @@ -686,7 +686,7 @@ func (this *ModelItemsComp) useitem(session comm.IUserSession, gid string, amoun return } - if itemcf.SynthetizeNum*int32(amount) > int32(item.Amount) { //碎片数量不够 + if amount > int32(item.Amount) { //碎片数量不够 errdata = &pb.ErrorData{ Code: pb.ErrorCode_ItemsNoEnough, Title: pb.ErrorCode_ItemsNoEnough.ToString(),