File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
src-electron/service/game/utils/recognitions
src/components/workflow/auto-fishing Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " maa-star-resonance" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " A Star Resonance helper powered by Quasar and MAA frameworks" ,
5
5
"productName" : " MAA Star Resonance" ,
6
6
"author" : " ParticleG <particle_g@outlook.com>" ,
Original file line number Diff line number Diff line change @@ -38,10 +38,8 @@ export const getBowDirection = async (
38
38
} ) ,
39
39
] ) ;
40
40
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 ;
47
45
} ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export const CHECK_ACCESSORIES: Pipeline = {
18
18
action : 'Click' ,
19
19
} ,
20
20
clickUseBait : {
21
+ interrupt : [ 'finishCheckAccessories' ] ,
21
22
next : [ 'clickAddRod' ] ,
22
23
timeout : 2000 ,
23
24
recognition : 'OCR' ,
Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ export const AUTO_FISHING: Workflow = {
11
11
name : 'startFishing' ,
12
12
icon : 'start' ,
13
13
data : START_FISHING ,
14
+ ignoreFailure : true ,
14
15
} ,
15
16
{
16
17
name : 'checkAccessories' ,
17
18
icon : 'checklist' ,
18
19
data : CHECK_ACCESSORIES ,
20
+ ignoreFailure : true ,
19
21
} ,
20
22
{
21
23
name : 'autoCastingAndLanding' ,
You can’t perform that action at this time.
0 commit comments