棋盘优化

This commit is contained in:
hahwu 2025-03-14 18:17:27 +08:00
parent c51e7d2ac6
commit 054be4f843
2 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,7 @@ var (
// gate conf
PendingWriteNum = 2000
MaxMsgLen uint32 = 16384 // 16KB
MaxMsgLen uint32 = 65536 // 16KB
HTTPTimeout = 10 * time.Second
LenMsgLen = 2
LittleEndian = false

View File

@ -241,6 +241,10 @@ func ReqGmCommand_(player *Player, Command string) error {
ChessMod := player.PlayMod.getChessMod()
ChessMod.Retire = make(map[string]int)
ChessMod.RetireChessMap = make(map[string][]int)
case "cleanBuff":
ChessMod := player.PlayMod.getChessMod()
ChessMod.ChessBuff = []int{}
player.PushClientRes(ChessMod.BackData())
case "addChip":
PlayroomMod := player.PlayMod.getPlayroomMod()
PlayroomMod.AddChip()