From 3b549fe732baebd32c9e96ce951e06cfc4f5f6c0 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 7 Nov 2023 18:25:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=A3=E5=BC=B9=E6=96=B9?= =?UTF-8?q?=E5=9D=97=20=E9=9A=8F=E6=9C=BA=E5=B8=A6=E8=B5=B0=E5=85=83?= =?UTF-8?q?=E7=B4=A0=E4=BD=8D=E7=BD=AE=E4=B8=8D=E6=AD=A3=E7=A1=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/entertainment/xxlPlat.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/entertainment/xxlPlat.go b/modules/entertainment/xxlPlat.go index 6f9f02ed1..35f711217 100644 --- a/modules/entertainment/xxlPlat.go +++ b/modules/entertainment/xxlPlat.go @@ -117,7 +117,7 @@ func (this *MapData) InitMap(module *Entertainment, iType int32) { this.SetIndelibilityPlat() this.Plat = this.GetPalatData() - //this.SetMap() // 方便测试固定地图 + // this.SetMap() // 方便测试固定地图 } // 交换之前先判断是不是特殊元素的交换 @@ -741,12 +741,12 @@ func (this *MapData) SkillUp(pos int32, color int32, skillid int32, value int32, func (this *MapData) SetMap() { sz2 := []int32{ 3, 3, 2, 2, 1, 3, 1, - 5, 1, 2, 3, 1, 2, 2, - 3, 4, 3, 5, 6, 1, 6, - 1, 4, 1, 4, 2, 3, 6, + 5, 1, 3, 3, 1, 2, 2, + 3, 2, 1, 4, 3, 1, 6, + 1, 4, 3, 4, 2, 3, 6, 1, 5, 6, 5, 6, 1, 4, - 6, 6, 3, 6, 4, 3, 3, - 3, 3, 1, 3, 1, 2, 5, + 6, 6, 3, 6, 3, 1, 3, + 3, 3, 1, 3, 3, 2, 5, // 1, 4, 2, 5, 4, 5, 2, // 3, 2, 3, 5, 2, 1, 4, // 2, 5, 5, 4, 5, 4, 1, @@ -1179,8 +1179,8 @@ func (this *MapData) SpecialElem(id int, s int32) (x map[int]struct{}) { // 获取配置 if c, _ := this.module.configure.GetGameBlock(this.Plat[id].Color, FiveType); c != nil { ids := utils.RandomNumbers(0, Total-1, int(c.Value)) - for key := range ids { - x[key] = struct{}{} + for _, v := range ids { + x[v] = struct{}{} } } } else if s == BoomType { // 炸弹类型 带走周围一圈+ 上下左右