fix: 自动切技能设置进存档

This commit is contained in:
unanmed 2024-10-03 18:28:19 +08:00
parent ec5381e2bb
commit c6ec4971ee
3 changed files with 2 additions and 3 deletions

View File

@ -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",

View File

@ -384,6 +384,7 @@ function handleActionSetting<T extends number | boolean>(
if (key === 'autoSkill') {
// 自动切换技能
flags.autoSkill = n;
core.status.route.push(`set:autoSkill:${n}`)
}
}

View File

@ -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);