Skip to content

Commit f6f30db

Browse files
committed
- Update sources
1 parent 3d5dc06 commit f6f30db

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "maa-star-resonance",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "A Star Resonance helper powered by Quasar and MAA frameworks",
55
"productName": "MAA Star Resonance",
66
"author": "ParticleG <particle_g@outlook.com>",

src-electron/service/game/utils/recognitions/fishing.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ export const getBowDirection = async (
3838
}),
3939
]);
4040

41-
if (bowLeftResult?.detail?.filtered?.length) {
42-
return 'left';
43-
}
44-
if (bowRightResult?.detail?.filtered?.length) {
45-
return 'right';
46-
}
41+
const bowLeftScore = bowLeftResult?.detail?.filtered?.[0]?.score ?? 0;
42+
const bowRightScore = bowRightResult?.detail?.filtered?.[0]?.score ?? 0;
43+
44+
return bowLeftScore > bowRightScore ? 'left' : bowRightScore > bowLeftScore ? 'right' : undefined;
4745
};

src/components/workflow/auto-fishing/check-accessories.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const CHECK_ACCESSORIES: Pipeline = {
1818
action: 'Click',
1919
},
2020
clickUseBait: {
21+
interrupt: ['finishCheckAccessories'],
2122
next: ['clickAddRod'],
2223
timeout: 2000,
2324
recognition: 'OCR',

src/components/workflow/auto-fishing/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ export const AUTO_FISHING: Workflow = {
1111
name: 'startFishing',
1212
icon: 'start',
1313
data: START_FISHING,
14+
ignoreFailure: true,
1415
},
1516
{
1617
name: 'checkAccessories',
1718
icon: 'checklist',
1819
data: CHECK_ACCESSORIES,
20+
ignoreFailure: true,
1921
},
2022
{
2123
name: 'autoCastingAndLanding',

0 commit comments

Comments
 (0)