From 1b5b73fffb318359cdb63771010b72a5f140b411 Mon Sep 17 00:00:00 2001 From: unanmed <90094606+unanmed@users.noreply.github.com> Date: Wed, 4 Jan 2023 08:45:11 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20b9fa8?= =?UTF-8?q?561d69972f5bef6cf377d3d5ad6a2d19a84=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/functions.js | 2 ++ project/plugins.js | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/project/functions.js b/project/functions.js index de1b9b7..3daf826 100644 --- a/project/functions.js +++ b/project/functions.js @@ -203,6 +203,8 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = { if (weather) core.setWeather(weather[0], weather[1]); else core.setWeather(); + core.checkLoopMap(); + // ...可以新增一些其他内容,比如创建个画布在右上角显示什么内容等等 }, afterChangeFloor: function (floorId) { diff --git a/project/plugins.js b/project/plugins.js index 820efd7..6d403c4 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -4119,7 +4119,6 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = { let tx = data.loc[0] + flags[`loop_${data.floorId}`]; tx %= floor.width; if (tx < 0) tx += floor.width; - console.log(data.loc[0], tx); heroLoc = { x: tx, y: data.loc[1] @@ -4173,7 +4172,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = { let block = core.getBlock(x, y); const id = core.status.floorId; const loop = isLoopMap(id); - if (loop) { + if (loop && flags[`loop_${id}`] !== 0) { if (block && block.event.trigger === 'changeFloor') { delete block.event.trigger; core.maps._addInfo(block);