@@ -180,6 +180,48 @@ public void Init()
180180 // GS2.WarnJson(GSSettings.ThemeLibrary.Select(p=>p.Key).ToList());
181181 // }));
182182 DebugOptions . Add ( GSUI . Spacer ( ) ) ;
183+ DebugOptions . Add ( GSUI . Button ( "Reset Logistic Bot Speed" , "Reset" ,
184+ ( _ ) =>
185+ {
186+ GameMain . data . history . logisticCourierSpeed = Configs . freeMode . logisticCourierSpeed ;
187+ GameMain . data . history . logisticCourierSpeedScale = 1f ;
188+ GameMain . data . history . logisticCourierCarries = Configs . freeMode . logisticCourierCarries ;
189+ GameMain . data . history . dispenserDeliveryMaxAngle = Configs . freeMode . dispenserDeliveryMaxAngle ;
190+ if ( GameMain . data . history . techStates [ 3401 ] . unlocked )
191+ {
192+ GameMain . data . history . logisticCourierSpeedScale += 0.1f ;
193+ }
194+ if ( GameMain . data . history . techStates [ 3402 ] . unlocked )
195+ {
196+ GameMain . data . history . logisticCourierSpeedScale += 0.1f ;
197+ }
198+ if ( GameMain . data . history . techStates [ 3403 ] . unlocked )
199+ {
200+ GameMain . data . history . logisticCourierSpeedScale += 0.15f ;
201+ }
202+ if ( GameMain . data . history . techStates [ 3404 ] . unlocked )
203+ {
204+ GameMain . data . history . logisticCourierSpeedScale += 0.15f ;
205+ }
206+ if ( GameMain . data . history . techStates [ 3405 ] . unlocked )
207+ {
208+ GameMain . data . history . logisticCourierSpeedScale += 0.15f ;
209+ }
210+ if ( GameMain . data . history . techStates [ 3406 ] . unlocked )
211+ {
212+ GameMain . data . history . logisticCourierSpeedScale += 0.15f ;
213+ }
214+ GameMain . data . history . logisticCourierSpeedScale += 0.2f * ( float ) ( GameMain . data . history . techStates [ 3407 ] . curLevel - 7 ) ;
215+ for ( int num12 = 3501 ; num12 <= 3507 ; num12 ++ )
216+ {
217+ if ( GameMain . data . history . techStates [ num12 ] . unlocked )
218+ {
219+ GameMain . data . history . logisticCourierCarries ++ ;
220+ }
221+ }
222+ } , null , "Fix games created on 2.8.0" ) ) ;
223+
224+
183225 Options . Add ( GSUI . Group ( "Debug Options" . Translate ( ) , DebugOptions , "Useful for testing galaxies/themes" . Translate ( ) ) ) ;
184226 Options . Add ( GSUI . Spacer ( ) ) ;
185227
0 commit comments