From 414725cb21a10aa6319ba709f9359758f0ba44b4 Mon Sep 17 00:00:00 2001 From: "COMPUTER\\EDY" <249929363@qq.com> Date: Tue, 14 Apr 2026 11:01:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Block.ts | 10 +++++----- assets/Script/Map.ts | 27 ++++++++++++++------------- assets/action_bundle/img/hammer.meta | 13 ------------- 3 files changed, 19 insertions(+), 31 deletions(-) delete mode 100644 assets/action_bundle/img/hammer.meta diff --git a/assets/Script/Block.ts b/assets/Script/Block.ts index d62f063..6ab85e6 100644 --- a/assets/Script/Block.ts +++ b/assets/Script/Block.ts @@ -417,7 +417,7 @@ export default class Block extends cc.Component { this.setMapBlock(); this.level = 50 + this.posX - this.posY * 3; if (this.type != BlockType.单色地块) this.node.zIndex = this.level; - else this.node.zIndex = 1000; + // else this.node.zIndex = 1000; this.node.x = mapInfo[i].x + 65; this.node.y = mapInfo[i].y - 60; this.startPos = this.node.position; @@ -1086,7 +1086,7 @@ export default class Block extends cc.Component { this.setMapBlock(); this.level = 50 + this.posX - this.posY * 3; if (this.type != BlockType.单色地块) this.node.zIndex = this.level; - else this.node.zIndex = 1000; + // else this.node.zIndex = 1000; //console.log("方块层级", this.node.zIndex); this.node.x = mapBlock.x + 65; this.node.y = mapBlock.y - 60; @@ -1513,7 +1513,7 @@ export default class Block extends cc.Component { else cc.fx.AudioManager._instance.playEffect("hit", null); if (this.type != BlockType.单色地块) this.node.zIndex = 200; - else this.node.zIndex = 1000; + // else this.node.zIndex = 1000; if (this.type == 9) { if (this.block_Info.node) { @@ -1677,7 +1677,7 @@ export default class Block extends cc.Component { MapConroler._instance.removeOneBlock(); this.isTouch = false; if (this.type != BlockType.单色地块) this.node.zIndex = this.level; - else this.node.zIndex = 1000; + // else this.node.zIndex = 1000; this.hit.active = false; let otherBlocks = null; if (this.type == 9) { @@ -1758,7 +1758,7 @@ export default class Block extends cc.Component { MapConroler._instance.removeOneBlock(); this.isTouch = false; if (this.type != BlockType.单色地块) this.node.zIndex = this.level; - else this.node.zIndex = 1000; + // else this.node.zIndex = 1000; this.hit.active = false; if (this.type == 9) { if (this.block_Info.node) { diff --git a/assets/Script/Map.ts b/assets/Script/Map.ts index c298431..7b7989f 100644 --- a/assets/Script/Map.ts +++ b/assets/Script/Map.ts @@ -4948,6 +4948,19 @@ export default class MapConroler extends cc.Component { // MiniGameSdk.API.showToast("魔法棒数量不足,自动购买魔法棒"); } else { + if (cc.fx.GameConfig.GM_INFO.otherLevel == 0) { + if (cc.fx.GameConfig.GM_INFO.tasks.useProp.value < cc.fx.GameConfig.GM_INFO.tasks.useProp.target) { + cc.fx.GameConfig.GM_INFO.tasks.useProp.value += 1; + cc.fx.GameTool.setDailyQuestInfo(); + if (cc.fx.GameConfig.GM_INFO.tasks.useProp.value == cc.fx.GameConfig.GM_INFO.tasks.useProp.target) { + let data = { + id: 3, + status: "complete" + } + cc.fx.GameTool.shushu_Track("daily_task", data); + } + } + } const timestamp = Date.now(); cc.fx.GameConfig.GM_INFO.magicAmount -= 1; if (cc.fx.GameConfig.GM_INFO.magicAmount < 0) @@ -4976,19 +4989,7 @@ export default class MapConroler extends cc.Component { //使用魔法棒随机消除两个方块 runMagic() { let magicBtn = this.node.parent.getChildByName("Bottom").getChildByName("magicBtn"); - if (cc.fx.GameConfig.GM_INFO.otherLevel == 0) { - if (cc.fx.GameConfig.GM_INFO.tasks.useProp.value < cc.fx.GameConfig.GM_INFO.tasks.useProp.target) { - cc.fx.GameConfig.GM_INFO.tasks.useProp.value += 1; - cc.fx.GameTool.setDailyQuestInfo(); - if (cc.fx.GameConfig.GM_INFO.tasks.useProp.value == cc.fx.GameConfig.GM_INFO.tasks.useProp.target) { - let data = { - id: 3, - status: "complete" - } - cc.fx.GameTool.shushu_Track("daily_task", data); - } - } - } + const timestamp = Date.now(); this.magicMask.active = true; setTimeout(() => { diff --git a/assets/action_bundle/img/hammer.meta b/assets/action_bundle/img/hammer.meta deleted file mode 100644 index a41d5a1..0000000 --- a/assets/action_bundle/img/hammer.meta +++ /dev/null @@ -1,13 +0,0 @@ -{ - "ver": "1.1.3", - "uuid": "87056b96-7f04-4f1f-a3bb-a13a087d1ff5", - "importer": "folder", - "isBundle": false, - "bundleName": "", - "priority": 1, - "compressionType": {}, - "optimizeHotUpdate": {}, - "inlineSpriteFrames": {}, - "isRemoteBundle": {}, - "subMetas": {} -} \ No newline at end of file