From f793d765034c258eba0a6bb79df3d48dcc5be86b Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Fri, 1 Dec 2023 10:15:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E5=BD=93=E5=89=8D=E7=94=9F?= =?UTF-8?q?=E6=88=90=E7=9A=84=E4=B9=9F=E6=98=AF=E4=B8=80=E4=B8=AA=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E7=9A=84=E5=85=83=E7=B4=A0=20=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E6=B6=88=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/entertainment/xxlPlat.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/entertainment/xxlPlat.go b/modules/entertainment/xxlPlat.go index 49fe05b03..5f37d3ad2 100644 --- a/modules/entertainment/xxlPlat.go +++ b/modules/entertainment/xxlPlat.go @@ -147,7 +147,6 @@ func (this *MapData) InitMap(module *Entertainment, iType int32) { this.SetIndelibilityPlat() this.Plat = this.GetPalatData() - //this.SetMap() // 方便测试固定地图 } // 交换之前先判断是不是特殊元素的交换 @@ -322,8 +321,11 @@ func (this *MapData) Check4X() (bEliminate bool, xiaochu []int, s map[int]int) { if newElem == 0 { newElem = k + 2 // 给个默认值 } + // 如果当前生成的也是一个特殊的元素 直接消除 + if this.Plat[newElem].Special == 0 { + s[newElem] = FourUType + } - s[newElem] = FourUType xiaochu = append(xiaochu, []int{k, k + 1, k + 2, k + 3}...) for _, v := range xiaochu { this.Plat[v].Cid = 0 @@ -353,7 +355,10 @@ func (this *MapData) Check4X() (bEliminate bool, xiaochu []int, s map[int]int) { newElem = k + 2*Width // 给个默认值 } - s[newElem] = FourLType + // 如果当前生成的也是一个特殊的元素 直接消除 + if this.Plat[newElem].Special == 0 { + s[newElem] = FourLType + } xiaochu = append(xiaochu, k+Width) xiaochu = append(xiaochu, []int{k, k + Width, k + 2*Width, k + 3*Width}...) for _, v := range xiaochu {