From 1d4fce204e3af9c6ed0b54c0ac2382fef1b42ef1 Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Wed, 17 Dec 2025 19:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=8B=E7=9B=98=E6=95=B0=E6=8D=AE=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/mod/chess/Chess.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/server/game/mod/chess/Chess.go b/src/server/game/mod/chess/Chess.go index e75362da..3d19abf2 100644 --- a/src/server/game/mod/chess/Chess.go +++ b/src/server/game/mod/chess/Chess.go @@ -84,6 +84,24 @@ func (cb *ChessBorad) InitData() { cb.ChessBag.List[i] = ChessBagGrid{} } } + if cb.RetireReward == nil { + cb.RetireReward = make(map[string]bool) + } + if cb.PartBag.List == nil { + cb.PartBag.List = make(map[int]PartBagGrid) + } + if cb.ChessMap == nil { + cb.ChessMap = make(map[string]int32) + } + if cb.RetireChessMap == nil { + cb.RetireChessMap = make(map[string][]int) + } + if cb.Retire == nil { + cb.Retire = make(map[string]int) + } + if cb.Honor == nil { + cb.Honor = make(map[int]int) + } } func (cb *ChessBorad) ver() {