@@ -24,19 +24,19 @@ internal class CountInventoryItem : ISoloTask<int>
2424        private  readonly  InputSimulator  input  =  Simulation . SendInput ; 
2525        private  CancellationToken  ct ; 
2626        private  readonly  GridScreenName  gridScreenName ; 
27-         private  readonly  string  foodName ; 
27+         private  readonly  string  itemName ; 
2828
29-         public  CountInventoryItem ( GridScreenName  gridScreenName ,  string  foodName ) 
29+         public  CountInventoryItem ( GridScreenName  gridScreenName ,  string  itemName ) 
3030        { 
3131            this . gridScreenName  =  gridScreenName ; 
32-             this . foodName  =  foodName ; 
32+             this . itemName  =  itemName ; 
3333        } 
3434
3535        public  async  Task < int >  Start ( CancellationToken  ct ) 
3636        { 
3737            this . ct  =  ct ; 
3838
39-             logger . LogInformation ( "打开背包并在{grid}寻找{name}……" ,  this . gridScreenName ,  this . foodName ) ; 
39+             logger . LogInformation ( "打开背包并在{grid}寻找{name}……" ,  this . gridScreenName ,  this . itemName ) ; 
4040            await  new  ReturnMainUiTask ( ) . Start ( ct ) ; 
4141            await  AutoArtifactSalvageTask . OpenInventory ( this . gridScreenName ,  input ,  logger ,  this . ct ) ; 
4242
@@ -50,7 +50,7 @@ public async Task<int> Start(CancellationToken ct)
5050                using  Mat  icon  =  itemRegion . SrcMat . GetGridIcon ( ) ; 
5151                var  result  =  GridIconsAccuracyTestTask . Infer ( icon ,  session ,  prototypes ) ; 
5252                string  predName  =  result . Item1 ; 
53-                 if  ( predName  ==  this . foodName ) 
53+                 if  ( predName  ==  this . itemName ) 
5454                { 
5555                    string  numStr  =  itemRegion . SrcMat . GetGridItemIconText ( OcrFactory . Paddle ) ; 
5656                    if  ( int . TryParse ( numStr ,  out  int  num ) ) 
@@ -69,7 +69,7 @@ public async Task<int> Start(CancellationToken ct)
6969            if  ( count  ==  null ) 
7070            { 
7171                count  =  - 1 ; 
72-                 logger . LogInformation ( "没有找到{name}" ,  this . foodName ) ; 
72+                 logger . LogInformation ( "没有找到{name}" ,  this . itemName ) ; 
7373            } 
7474            await  new  ReturnMainUiTask ( ) . Start ( ct ) ; 
7575
0 commit comments