mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 04:19:30 +08:00
完善追逐战
This commit is contained in:
parent
bdf47dae82
commit
d365569d45
@ -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",
|
||||
|
@ -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
|
||||
);
|
||||
}
|
||||
|
@ -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);
|
||||
|
6
src/types/plugin.d.ts
vendored
6
src/types/plugin.d.ts
vendored
@ -114,6 +114,12 @@ interface PluginUtils {
|
||||
* @param index 追逐战索引
|
||||
*/
|
||||
startChase(index: number): Promise<void>;
|
||||
|
||||
/**
|
||||
* 自动修复特殊boss战的录像
|
||||
* @param isStart 是否要开始修剪录像
|
||||
*/
|
||||
autoFixRouteBoss(isStart?: boolean);
|
||||
}
|
||||
|
||||
interface PluginUis {
|
||||
|
Loading…
Reference in New Issue
Block a user