JS脚本: 自动狗粮1.23.4 (#1117)

This commit is contained in:
mno
2025-06-16 18:55:48 +08:00
committed by GitHub
parent 8f22bd7d66
commit e2d0e5b3c1
3 changed files with 11 additions and 2 deletions

View File

@@ -16,7 +16,7 @@
使用即表示您已阅读并同意上述条款。
**Last Updated:** 2025-06-14
**Last Updated:** 2025-06-16
---
@@ -129,6 +129,8 @@
3. 在执行过程中,确保游戏窗口保持在前台,避免干扰。
## 更新日志
### 1.23.42025.06.16
1.增加了对于敌人类型的处理,避免报错
### 1.23.12025.06.14
1.日志中加入路径名的信息
### 1.23.02025.06.13

View File

@@ -13,6 +13,8 @@ const DEFAULT_FIGHT_TIMEOUT_SECONDS = 120;
const grindPartyName = settings.grindPartyName;
const operationType = settings.operationType || "不卡时间ab交替运行";
let enemyType = "无";
//处理操作模式信息
switch (operationType) {
case "盗宝团好感卡时间":
@@ -599,6 +601,11 @@ async function AutoFriendshipDev(times, ocrTimeout, fightTimeout, enemyType = "
let friendTimes = 0;
for (let i = 0; i < times; i++) {
if (enemyType === "无") {
log.info(`不进行好感`);
return 0;
}
// 获取当前时间
const now = new Date();

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "自动狗粮重制版",
"version": "1.23.3",
"version": "1.23.4",
"tags": ["好感", "盗宝团", "愚人众", "鳄鱼", "兽肉", "狗粮"],
"description": "通过不同好感任务卡时间后运行狗粮任务以提高狗粮总收益,需要正确配置好感队伍的战斗策略,并在自定义配置中指定好感和狗粮队伍名称",
"authors": [