mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-02-07 20:09:27 +08:00
fix: 自动切技能设置进存档
This commit is contained in:
parent
ec5381e2bb
commit
c6ec4971ee
@ -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",
|
||||||
|
@ -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}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user