File tree Expand file tree Collapse file tree
src-electron/service/game/utils/recognitions
src/components/workflow/auto-fishing Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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>" ,
Original file line number Diff line number Diff 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} ;
Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments