From b9fa8561d69972f5bef6cf377d3d5ad6a2d19a84 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Wed, 4 Jan 2023 16:42:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=BE=AA=E7=8E=AF=E5=BC=8F?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/project/functions.js | 2 ++ public/project/plugins.js | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/project/functions.js b/public/project/functions.js index de1b9b7..3daf826 100644 --- a/public/project/functions.js +++ b/public/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/public/project/plugins.js b/public/project/plugins.js index 820efd7..6d403c4 100644 --- a/public/project/plugins.js +++ b/public/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);