添加版本号和作者,移除最后一次返回甜甜花重登 (#498)

This commit is contained in:
秋云
2025-03-31 03:32:45 +08:00
committed by GitHub
parent 8c5306e898
commit c061ba548b
4 changed files with 12 additions and 9 deletions

View File

@@ -25,7 +25,7 @@
await sleep(1000);
click(1010, 760);
await sleep(1000);
}
} // todo:考虑添加ocr参数确保一定点击到 F
async function AutoPath(locationName) {
try {
@@ -48,7 +48,9 @@
log.info(`自动好感当前次数:${i + 1}/${times}`);
await AutoPath('从甜甜花到狗盆');
await Feed();
await AutoPath('从狗盆到甜甜花');
if( i == times - 1) {
await AutoPath('从狗盆到甜甜花');
} //最后一次不需要返回到甜甜花
const estimatedCompletion = CalculateEstimatedCompletion(startFirstTime, i + 1, times);
const currentTime = LogTimeTaken(startFirstTime);
log.info(`当前进度:${i + 1}/${times} (${((i + 1) / times * 100).toFixed(1)}%)`);