@@ -401,7 +401,7 @@ async function processArtifacts(times = 1) {
401401 await sleep ( 1000 ) ;
402402
403403 // 识别已储存经验(1570-880-1650-930)
404- const digits = await numberTemplateMatch ( "assets/已储存经验数字" , 1573 , 885 , 74 , 36 ) ;
404+ let digits = await numberTemplateMatch ( "assets/已储存经验数字" , 1573 , 885 , 74 , 36 ) ;
405405
406406 let initialValue = 0 ;
407407 if ( digits >= 0 ) {
@@ -429,7 +429,7 @@ async function processArtifacts(times = 1) {
429429 }
430430 await sleep ( 1000 ) ;
431431
432- const match = await numberTemplateMatch ( "assets/分解数量数字" , 100 , 885 , 200 , 50 ) ;
432+ let match = await numberTemplateMatch ( "assets/分解数量数字" , 100 , 885 , 200 , 50 ) ;
433433 match = ( match - 1000 ) / 10000 ;
434434
435435 if ( match >= 0 ) {
@@ -479,7 +479,7 @@ async function processArtifacts(times = 1) {
479479 }
480480 // 当前总经验(1470-880-205-70)
481481
482- const digits2 = await numberTemplateMatch ( "assets/分解可获得经验数字" , 1469 , 899 , 180 , 37 , 0.95 , 0.85 , 5 , 1 ) ;
482+ let digits2 = await numberTemplateMatch ( "assets/分解可获得经验数字" , 1469 , 899 , 180 , 37 , 0.95 , 0.85 , 5 , 1 ) ;
483483
484484 let newValue = 0 ;
485485 if ( digits2 >= 0 ) {
@@ -516,7 +516,7 @@ async function processArtifacts(times = 1) {
516516 }
517517
518518 // 7. 计算分解获得经验=总经验-上次剩余
519- const resinExperience = Math . max ( newValue - initialValue , 0 ) ;
519+ let resinExperience = Math . max ( newValue - initialValue , 0 ) ;
520520 log . info ( `分解可获得经验: ${ resinExperience } ` ) ;
521521 let fourStarNum = firstNumber - firstNumber2 ;
522522 if ( settings . keep4Star ) {
@@ -526,7 +526,7 @@ async function processArtifacts(times = 1) {
526526 if ( resultExperience === 0 ) {
527527 resultExperience = initialValue ;
528528 }
529- const result = resultExperience ;
529+ let result = resultExperience ;
530530 await genshin . returnMainUi ( ) ;
531531 return result ;
532532 }
0 commit comments