From 477bc727800600957babe9f5224e8f597d27a5c1 Mon Sep 17 00:00:00 2001 From: "COMPUTER\\EDY" <249929363@qq.com> Date: Sat, 11 Oct 2025 14:20:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BF=AE=E5=A4=8D=E5=BA=95?= =?UTF-8?q?=E6=9D=BF=E4=B8=8B=20=E6=96=B9=E5=9D=97=E7=9A=84=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/prop/Boom.ts | 5 +++++ assets/Script/prop/Freeze.ts | 5 +++++ assets/custom/Json/level476.json | 3 ++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/assets/Script/prop/Boom.ts b/assets/Script/prop/Boom.ts index 0b1c15e..2e663f2 100644 --- a/assets/Script/prop/Boom.ts +++ b/assets/Script/prop/Boom.ts @@ -59,6 +59,11 @@ export default class Boom extends cc.Component { updateTime() { if (MapConroler._instance.iceTrue() == true) return; if (MapConroler._instance.pause == true) return; + if (this.node.parent) { + if (this.node.parent.getComponent("Block").block_Info.floor) { + return; + } + } this.time--; NumberToImage.numberToImageNodes(this.time, 20, 8, "lock_", this.node.getChildByName("time"), false); if (this.time <= 0) { diff --git a/assets/Script/prop/Freeze.ts b/assets/Script/prop/Freeze.ts index 3a7d511..733c467 100644 --- a/assets/Script/prop/Freeze.ts +++ b/assets/Script/prop/Freeze.ts @@ -42,6 +42,11 @@ export default class Freeze extends cc.Component { } reduce(number) { + if (this.node.parent) { + if (this.node.parent.getComponent("Block").block_Info.floor) { + return; + } + } this.time -= number; if (this.time <= 0) this.time = 0 NumberToImage.numberToImageNodes(this.time, 40, 25, "ice_", this.node.getChildByName("time"), false); diff --git a/assets/custom/Json/level476.json b/assets/custom/Json/level476.json index 672db1f..9389bca 100644 --- a/assets/custom/Json/level476.json +++ b/assets/custom/Json/level476.json @@ -109,12 +109,13 @@ { "block": 3, "color": 6, - "type": 0, + "type": 6, "position": { "x": 60, "y": -180, "z": 0 }, + "boomTime": 15, "floor": 2, "floorTime": 10, "id": 270