fix: 周本合并

This commit is contained in:
秋云
2025-07-16 00:38:50 +08:00
parent f584138cf5
commit feffbcf43c
117 changed files with 72 additions and 5166 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 637 B

View File

@@ -0,0 +1,93 @@
{
"info": {
"name": "未命名路径",
"type": "collect",
"author": "柒叶子",
"version": "1.0",
"description": "前往狼王",
"bgi_version": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -251.5966796875,
"y": 2256.586181640625,
"action_params": ""
},
{
"id": 2,
"x": -239.8662109375,
"y": 2235.255859375,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": -243.6318359375,
"y": 2219.89599609375,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": -250.318359375,
"y": 2200.3515625,
"type": "path",
"move_mode": "fly",
"action": "",
"action_params": ""
},
{
"id": 5,
"x": -263.7783203125,
"y": 2142.494140625,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 6,
"x": -266.06640625,
"y": 2100.711669921875,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 7,
"x": -273.099609375,
"y": 2053.126220703125,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 8,
"x": -276.521484375,
"y": 2028.33837890625,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
"action_params": ""
},
{
"id": 9,
"x": -280.3447265625,
"y": 1999.419921875,
"type": "target",
"move_mode": "dash",
"action": "",
"action_params": ""
}
]
}

View File

@@ -0,0 +1,72 @@
eval(file.readTextSync("utils.js"));
(async function () {
function validateChallengeTime(challengeTime) {
// 检查是否为正数
if (challengeTime <= 0) {
throw new Error('challengeTime 必须是一个正数');
}
// 检查是否小于60
if (challengeTime >= 60) {
throw new Error('challengeTime 必须小于60');
}
// 检查小数点位数是否不多于两位
const decimalPart = challengeTime.toString().split('.')[1];
if (decimalPart && decimalPart.length > 2) {
throw new Error('challengeTime 的小数点位数不能多于两位');
}
}
validateChallengeTime(settings.challengeTime);
if(!settings.unfairContractTerms) throw new Error('未签署霸王条款,无法使用');
//执行不同的周本
switch (settings.monsterName) {
case "北风狼":
await utils.weeklyBoss1();
break;
case "风魔龙":
await utils.weeklyBoss2();
break;
case "公子":
await utils.weeklyBoss3();
break;
case "若陀龙王":
await utils.weeklyBoss4();
break;
case "女士":
await utils.weeklyBoss5();
break;
case "雷神":
await utils.weeklyBoss6();
break;
case "散兵":
await utils.weeklyBoss7();
break;
case "阿佩普":
await utils.weeklyBoss8();
break;
case "吞星之鲸":
await utils.weeklyBoss9();
break;
case "仆人":
await utils.weeklyBoss10();
break;
case "源焰之主":
await utils.weeklyBoss11();
break;
case "门扉前的弈局":
await utils.weeklyBoss12();
break;
default:
break;
}
})();

View File

@@ -0,0 +1,14 @@
{
"manifest_version": 1,
"name": "周本一条龙",
"version": "3.0",
"description": "https://www.bilibili.com/video/BV1F2uvz3E4K/?vd_source=9dfaf88af48ecc0ff95a41f1145af7a2",
"authors": [
{
"name": "柒叶子",
"link": "https://github.com/511760049"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,64 @@
[
{
"name": "monsterName",
"type": "select",
"label": "周本Boss名称",
"options": [
"北风狼",
"风魔龙",
"公子",
"若陀龙王",
"女士",
"雷神",
"散兵",
"阿佩普",
"吞星之鲸",
"仆人",
"源焰之主",
"门扉前的弈局"
]
},
{
"name": "challengeTime",
"type": "input-text",
"label": "请输入战斗脚本一轮所运行的时间"
},
{
"name": "teamName",
"type": "input-text",
"label": "请输入挑战队伍名称"
},
{
"name": "foodName",
"type": "input-text",
"label": "请输入料理名称,多食物用法(攻击-药剂-防御)"
},
{
"name": "resurgenceFoodName",
"type": "input-text",
"label": "请输入复活料理名称 "
},
{
"name": "recoveryFoodName",
"type": "input-text",
"label": "请输入回血料理名称 "
},
{
"name": "energyMax",
"type": "checkbox",
"label": "挑战前是否恢复满能量",
"default": false
},
{
"name": "fightMode",
"type": "checkbox",
"label": "战斗模式(忽略刷新周期和体力值)",
"default": false
},
{
"name": "unfairContractTerms",
"type": "checkbox",
"label": "签署霸王条款开启使用,出了事跟作者无关",
"default": false
}
]

9386
repo/js/WeeklyBoss/utils.js Normal file

File diff suppressed because it is too large Load Diff