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": [ "no": [
{ {
"type": "function", "type": "function",
"function": "function(){\ncore.plugin.replay.readyClip();\n}" "function": "function(){\nMota.Plugin.require('replay_g').readyClip();\n}"
}, },
{ {
"type": "choices", "type": "choices",

View File

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

View File

@ -5,8 +5,6 @@ const replayableSettings = ['autoSkill'];
let cliping = false; let cliping = false;
let startIndex = 0; let startIndex = 0;
export function ready() {}
export function readyClip() { export function readyClip() {
cliping = true; cliping = true;
return (startIndex = core.status.route.length - 1); return (startIndex = core.status.route.length - 1);