From 23dd3eadf81ef2d3fa961dddb07d8f70e4caaa86 Mon Sep 17 00:00:00 2001 From: "COMPUTER\\EDY" <249929363@qq.com> Date: Mon, 17 Nov 2025 17:29:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8A=E6=97=A5=E6=8F=90=E7=A5=9E=E7=89=88?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E4=BF=AE=E5=A4=8D=E4=BA=86=20=E4=B8=8A?= =?UTF-8?q?=E9=94=81=E9=97=A8=E5=92=8C=E6=97=8B=E8=BD=AC=E9=97=A8=E5=B9=B6?= =?UTF-8?q?=E5=AD=98=E9=97=AE=E9=A2=98=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Map.ts | 3 +-- assets/Script/Wall.ts | 9 +++++++++ assets/Script/module/Tool/GameTool.ts | 4 ++-- assets/Script/prop/Lock.ts | 1 + 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/assets/Script/Map.ts b/assets/Script/Map.ts index f5ea2a9..404df62 100644 --- a/assets/Script/Map.ts +++ b/assets/Script/Map.ts @@ -1225,14 +1225,13 @@ export default class MapConroler extends cc.Component { if (wall[0].getChildByName("wall").getComponent("Wall").special == special) { wallArray.push(i); for (let k = 0; k < wall.length; k++) { - wall[k].getChildByName("wall").getComponent("Wall").special = 0; + wall[k].getChildByName("wall").getComponent("Wall").special = wall[k].getChildByName("wall").getComponent("Wall").specialBackup; wall[k].getChildByName("wall").getComponent("Wall").changeRevolvingWall(); } } } for (let j = 0; j < wallArray.length; j++) { - if (wallArray[j] < (this.revolvingWallArray.length - 1)) { let wall2 = this.revolvingWallArray[wallArray[j] + 1]; for (let k = 0; k < wall2.length; k++) { diff --git a/assets/Script/Wall.ts b/assets/Script/Wall.ts index b376295..95b55ae 100644 --- a/assets/Script/Wall.ts +++ b/assets/Script/Wall.ts @@ -133,6 +133,7 @@ export default class Wall extends cc.Component { longAndShort: number[] = []; // 长短变化的门 order: boolean = true; // 顺序门 length: number = 0; // 门的长度 + specialBackup: any; // 特殊门的备份,但是不备份 旋转门 // LIFE-CYCLE CALLBACKS: @@ -182,8 +183,15 @@ export default class Wall extends cc.Component { //this.node.getChildByName("num").getComponent(cc.Label).string = ":" + this.node.parent.zIndex; } if (wall_Info != null) { + this.specialBackup = 0; this.color = this.wall_Info.color; this.special = this.wall_Info.special; + if (this.special != WallSpecial.旋转门顺时针 && this.special != WallSpecial.旋转门逆时针) { + this.specialBackup = this.special; + } + else { + this.special = this.wall_Info.special; + } this.num = this.wall_Info.num; this.length = this.wall_Info.length; let name2 = "rotate" + this.wall_Info.length; @@ -493,6 +501,7 @@ export default class Wall extends cc.Component { resetFreeze() { this.special = 0; + this.specialBackup = 0; if (this.freezeNode) { cc.fx.AudioManager._instance.playEffect("freezeDoor", null); this.freezeNode.active = false; diff --git a/assets/Script/module/Tool/GameTool.ts b/assets/Script/module/Tool/GameTool.ts index ad5c0d4..85291de 100644 --- a/assets/Script/module/Tool/GameTool.ts +++ b/assets/Script/module/Tool/GameTool.ts @@ -399,8 +399,8 @@ var GameTool = { //关卡上限 maxLevel() { let jg = false; - if (cc.fx.GameConfig.GM_INFO.level > 669) { - cc.fx.GameConfig.GM_INFO.level = 670; + if (cc.fx.GameConfig.GM_INFO.level > 689) { + cc.fx.GameConfig.GM_INFO.level = 690; jg = true; } return jg; diff --git a/assets/Script/prop/Lock.ts b/assets/Script/prop/Lock.ts index ea02a31..e0aaa4b 100644 --- a/assets/Script/prop/Lock.ts +++ b/assets/Script/prop/Lock.ts @@ -43,6 +43,7 @@ export default class Lock extends cc.Component { } else if (this.type == "wall") { if (this.node.parent) this.node.parent.getChildByName("wall").getComponent("Wall").special = 0; + if (this.node.parent) this.node.parent.getChildByName("wall").getComponent("Wall").specialBackup = 0; } this.node.destroy(); this.node.removeFromParent();