style: 兽肉好感格式化 (#854)

This commit is contained in:
起个名字好难的喵
2025-05-17 12:18:17 +08:00
committed by GitHub
parent fbe9f988e9
commit 94e121a974
3 changed files with 20 additions and 15 deletions

View File

@@ -113,18 +113,18 @@
}));
//原版逻辑 await AutoPath(`好感-张牙舞爪的恶党-循环${getMeatMode ? '(二净甸刷肉版)' : '(二净甸)'}`);
//多种拾取模式
if (getMeatMode == "通用拾取") {
await AutoPath(`好感-张牙舞爪的恶党-循环(二净甸刷肉版)`);
}
else if (getMeatMode == "万叶拾取") {
await AutoPath(`万叶版前往`);
await keyMouseScript.runFile(`assets/万叶拾取.json`);
await AutoPath(`万叶版返回`);
}
else {
await AutoPath(`好感-张牙舞爪的恶党-循环(二净甸)`);
}
//多种拾取模式
if (getMeatMode == "算了我不捡了") {
await AutoPath(`好感-张牙舞爪的恶党-循环(二净甸)`);
} else if (getMeatMode == "通用拾取") {
await AutoPath(`好感-张牙舞爪的恶党-循环(二净甸刷肉版)`);
} else if (getMeatMode == "万叶拾取") {
await AutoPath(`万叶版前往`);
await keyMouseScript.runFile(`assets/万叶拾取.json`);
await AutoPath(`万叶版返回`);
} else {
await AutoPath(`好感-张牙舞爪的恶党-循环(二净甸)`);
}
// 关闭急速拾取
dispatcher.addTimer(new RealtimeTimer("AutoPick", {
@@ -208,7 +208,7 @@
if (!!settings.partyName) {
try {
log.info("正在尝试切换至" + settings.partyName);
if(!await genshin.switchParty(settings.partyName)){
if (!await genshin.switchParty(settings.partyName)) {
log.info("切换队伍失败,前往七天神像重试");
await genshin.tpToStatueOfTheSeven();
await genshin.switchParty(settings.partyName);
@@ -225,4 +225,4 @@
const startTime = Date.now();
await AutoFriendship(runTimes, statueTimes, getMeatMode, delayTime, startTime, ocrTimeout);
})();
})();

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "兽肉好感:自动好感度&刷两只鳄鱼兽肉&卡时间",
"version": "1.3.7",
"version": "1.4.0",
"bgi_version": "0.44.6",
"tags": ["好感", "兽肉", "突发事件"],
"description": "通过突发事件:张牙舞爪的恶党刷兽肉并顺带获取好感度好感度超过10次后不再获取请使用满员好感度队伍并为全体队伍角色配置相应的战斗策略",
@@ -9,6 +9,10 @@
{
"name": "起个名字好难的喵",
"links":"https://github.com/MisakaAldrich"
},
{
"name": "柒叶子",
"links":"https://github.com/5117600049"
}
],
"settings_ui": "settings.json",

View File

@@ -9,6 +9,7 @@
"type": "select",
"label": "开启刷兽肉模式【勾选才拾取兽肉】",
"options": [
"算了我不捡了",
"通用拾取",
"万叶拾取"
]