From c6ec4971ee31199bebb673ac0c6e9e8d26cc9a7d Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 3 Oct 2024 18:28:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=8A=A8=E5=88=87=E6=8A=80?= =?UTF-8?q?=E8=83=BD=E8=AE=BE=E7=BD=AE=E8=BF=9B=E5=AD=98=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/project/floors/MT16.js | 2 +- src/core/main/setting.ts | 1 + src/plugin/game/replay.ts | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/public/project/floors/MT16.js b/public/project/floors/MT16.js index 88f07d9..e18824b 100644 --- a/public/project/floors/MT16.js +++ b/public/project/floors/MT16.js @@ -89,7 +89,7 @@ main.floors.MT16= "no": [ { "type": "function", - "function": "function(){\ncore.plugin.replay.readyClip();\n}" + "function": "function(){\nMota.Plugin.require('replay_g').readyClip();\n}" }, { "type": "choices", diff --git a/src/core/main/setting.ts b/src/core/main/setting.ts index 656b45c..6d5c219 100644 --- a/src/core/main/setting.ts +++ b/src/core/main/setting.ts @@ -384,6 +384,7 @@ function handleActionSetting( if (key === 'autoSkill') { // 自动切换技能 flags.autoSkill = n; + core.status.route.push(`set:autoSkill:${n}`) } } diff --git a/src/plugin/game/replay.ts b/src/plugin/game/replay.ts index f848cf4..d63d12f 100644 --- a/src/plugin/game/replay.ts +++ b/src/plugin/game/replay.ts @@ -5,8 +5,6 @@ const replayableSettings = ['autoSkill']; let cliping = false; let startIndex = 0; -export function ready() {} - export function readyClip() { cliping = true; return (startIndex = core.status.route.length - 1);