diff --git a/public/project/floors/MT16.js b/public/project/floors/MT16.js index 6497269..a130dbc 100644 --- a/public/project/floors/MT16.js +++ b/public/project/floors/MT16.js @@ -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", diff --git a/src/plugin/chase/chase.ts b/src/plugin/chase/chase.ts index 4f6248a..45fff52 100644 --- a/src/plugin/chase/chase.ts +++ b/src/plugin/chase/chase.ts @@ -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 + ); } diff --git a/src/plugin/chase/chase1.ts b/src/plugin/chase/chase1.ts index a232ef2..de12532 100644 --- a/src/plugin/chase/chase1.ts +++ b/src/plugin/chase/chase1.ts @@ -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); diff --git a/src/types/plugin.d.ts b/src/types/plugin.d.ts index d521aa7..f0d1482 100644 --- a/src/types/plugin.d.ts +++ b/src/types/plugin.d.ts @@ -114,6 +114,12 @@ interface PluginUtils { * @param index 追逐战索引 */ startChase(index: number): Promise; + + /** + * 自动修复特殊boss战的录像 + * @param isStart 是否要开始修剪录像 + */ + autoFixRouteBoss(isStart?: boolean); } interface PluginUis {