完善追逐战

This commit is contained in:
unanmed 2023-01-03 22:36:50 +08:00
parent bdf47dae82
commit d365569d45
4 changed files with 54 additions and 2 deletions

View File

@ -87,9 +87,48 @@ main.floors.MT16=
}
],
"no": [
{
"type": "choices",
"text": "请选择难度",
"choices": [
{
"text": "简单(显示逃跑路线)",
"color": [
0,
255,
93,
1
],
"action": [
{
"type": "setValue",
"name": "flag:chaseHard",
"value": "0"
}
]
},
{
"text": "困难(不显示逃跑路线)",
"color": [
255,
0,
0,
1
],
"action": [
{
"type": "setValue",
"name": "flag:chaseHard",
"value": "1"
}
]
}
]
},
"追逐战后录像会进行自动修复,不用担心录像问题",
{
"type": "hideStatusBar"
"type": "hideStatusBar",
"toolbox": true
},
{
"type": "function",

View File

@ -220,5 +220,10 @@ export async function startChase(index: number) {
flags.chaseIndex = index;
flags.onChase = true;
await sleep(20);
flags.chase = new Chase(data.path, data.fns, data.camera);
flags.chase = new Chase(
data.path,
data.fns,
data.camera,
flags.chaseHard === 0
);
}

View File

@ -576,6 +576,8 @@ export function para3(chase: Chase) {
'MT14',
async () => {
flags.finishChase1 = true;
core.autoFixRouteBoss();
core.showStatusBar();
ani.time(750).apply('rect', 0);
chase.end();
await sleep(750);

View File

@ -114,6 +114,12 @@ interface PluginUtils {
* @param index
*/
startChase(index: number): Promise<void>;
/**
* boss战的录像
* @param isStart
*/
autoFixRouteBoss(isStart?: boolean);
}
interface PluginUis {