From 95d24b114d1277583c9683fa5dbfe4d2572b9579 Mon Sep 17 00:00:00 2001 From: Erdnase <1398341065@qq.com> Date: Wed, 15 Mar 2023 17:36:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B62=5F10=5F3=E5=88=86=E6=94=AF?= =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0=E6=88=98=E6=96=97=E5=81=9C=E9=A1=BF=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8B=E6=9C=BA=E6=89=93=E5=BC=80=E9=BB=91?= =?UTF-8?q?=E5=B1=8F=20=E4=BF=AE=E5=A4=8D0=E5=B1=82=E4=BB=99=E5=AD=90?= =?UTF-8?q?=E5=89=A7=E6=83=85=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/floors/MT0.js | 5 +++++ project/functions.js | 14 ++++++++------ project/plugins.js | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/project/floors/MT0.js b/project/floors/MT0.js index f98263f..73d1884 100644 --- a/project/floors/MT0.js +++ b/project/floors/MT0.js @@ -907,6 +907,11 @@ main.floors.MT0= "steps": [ "right:1" ] + }, + { + "type": "hide", + "remove": true, + "time": 0 } ] }, diff --git a/project/functions.js b/project/functions.js index a07c3a1..f770d70 100644 --- a/project/functions.js +++ b/project/functions.js @@ -326,12 +326,12 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = core.status.hero.exp += exp; core.status.hero.statistics.exp += exp; - var hint = "打败 " + core.getEnemyValue(enemy, "name", x, y); - if (core.flags.statusBarItems.indexOf('enableMoney') >= 0) - hint += ',' + core.getStatusLabel('money') + '+' + money; // hint += ",金币+" + money; - if (core.flags.statusBarItems.indexOf('enableExp') >= 0) - hint += ',' + core.getStatusLabel('exp') + '+' + exp; // hint += ",经验+" + exp; - if (!core.getFlag("isNoTip")) core.drawTip(hint, enemy.id); + var hint = "打败 " + core.getEnemyValue(enemy, "name", x, y); + if (core.flags.statusBarItems.indexOf('enableMoney') >= 0) + hint += ',' + core.getStatusLabel('money') + '+' + money; // hint += ",金币+" + money; + if (core.flags.statusBarItems.indexOf('enableExp') >= 0) + hint += ',' + core.getStatusLabel('exp') + '+' + exp; // hint += ",经验+" + exp; + if (!core.getFlag("isNoTip")) core.drawTip(hint, enemy.id); // 中毒 if (core.enemys.hasSpecial(special, 12)) { @@ -388,6 +388,8 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = core.push(todo, [{ "type": "insert", "name": "加点事件", "args": [point] }]); } + //等待动画执行完毕 + core.push(todo, [{ "type": "waitAsync" }]); // 战后事件 if (core.status.floorId != null) { core.push(todo, core.floors[core.status.floorId].afterBattle[x + "," + y]); diff --git a/project/plugins.js b/project/plugins.js index 2af42d9..de7841d 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -42,7 +42,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = if (clientWidth - 3 * BORDER >= core._PX_ + BAR_WIDTH || (clientWidth > clientHeight && horizontalMaxRatio < 1)) { core.domStyle.isVertical = false; core.clearMap('Vertical'); - } else { + } else if (core.status.played) { // 竖屏 core.domStyle.isVertical = true; core.createCanvas('Vertical', 0, 0, 480, 480, 200);