From cf4b4370e0bec88f42130bf1422eaea89e9fd048 Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Mon, 8 Sep 2025 16:30:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/mod/chess/Chess.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/mod/chess/Chess.go b/src/server/game/mod/chess/Chess.go index 5bbd5de0..23385ce8 100644 --- a/src/server/game/mod/chess/Chess.go +++ b/src/server/game/mod/chess/Chess.go @@ -360,7 +360,7 @@ func (cb *ChessBorad) GetChessFromBuff(Chess int) error { func (cb *ChessBorad) LosePart(PartId int, Num int) error { v, ok := cb.PartBag.List[PartId] if !ok || v.Num < Num { - return errors.New("part id not exist or num not enough") + return errors.New("part id not exist or num not enough" + fmt.Sprintf("PartId: %d, Num: %d, ok: %v", PartId, Num, ok)) } v.Num -= Num cb.PartBag.List[PartId] = v