From 929e797b8435adb9af64229552a35c2ed8e4e6cc Mon Sep 17 00:00:00 2001 From: huanghaipeng Date: Sat, 11 Oct 2025 18:28:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F=E5=BC=80=E5=A7=8B=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E9=81=93=E5=85=B7=E6=B8=85=E9=9B=B6=20=E7=89=B9?= =?UTF-8?q?=E5=AE=9A=E5=85=B3=E5=8D=A1=E7=BB=99=E4=B8=80=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Map.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/assets/Script/Map.ts b/assets/Script/Map.ts index d382bbe..e2d986d 100644 --- a/assets/Script/Map.ts +++ b/assets/Script/Map.ts @@ -515,6 +515,20 @@ export default class MapConroler extends cc.Component { this.guideItem.active = true; } + // 开始游戏时 清空道具 如果是第 8 11 16 默认给一个道具 + cc.fx.GameConfig.GM_INFO.hammerAmount = 0; + cc.fx.GameConfig.GM_INFO.freezeAmount = 0; + cc.fx.GameConfig.GM_INFO.magicAmount = 0; + if (cc.fx.GameConfig.GM_INFO.level + 1 == 8) { + cc.fx.GameConfig.GM_INFO.hammerAmount = 1; + } + if (cc.fx.GameConfig.GM_INFO.level + 1 == 11) { + cc.fx.GameConfig.GM_INFO.freezeAmount = 1; + } + if (cc.fx.GameConfig.GM_INFO.level + 1 == 16) { + cc.fx.GameConfig.GM_INFO.magicAmount = 1; + } + this.setPropNum(); } //创建方块