Commit 0c58d7d 1 parent 6edcdda commit 0c58d7d Copy full SHA for 0c58d7d
File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -96,14 +96,17 @@ internal static void OptimizeITOPOD()
96
96
if ( Main . Character . adventure . zone < 1000 ) return ;
97
97
var controller = Main . Character . adventureController ;
98
98
var level = controller . itopodLevel ;
99
- var highestOpen = Main . Character . adventure . highestItopodLevel ;
100
99
var optimal = CalculateBestItopodLevel ( ) ;
100
+ if ( level == optimal ) return ; // we are on optimal floor
101
+ var highestOpen = Main . Character . adventure . highestItopodLevel ;
102
+ var climbing = ( level < optimal && level >= highestOpen - 1 ) ;
101
103
controller . itopodStartInput . text = optimal . ToString ( ) ;
104
+ if ( climbing )
105
+ optimal ++ ;
102
106
controller . itopodEndInput . text = optimal . ToString ( ) ;
103
107
controller . verifyItopodInputs ( ) ;
104
- if ( level == optimal ) return ; // we are on optimal floor
105
- if ( level < optimal && level >= highestOpen - 1 ) return ; // we are climbing
106
- controller . zoneSelector . changeZone ( 1000 ) ;
108
+ if ( ! climbing )
109
+ controller . zoneSelector . changeZone ( 1000 ) ;
107
110
}
108
111
109
112
internal static int CalculateBestItopodLevel ( )
You can’t perform that action at this time.
0 commit comments