@@ -1247,8 +1247,7 @@ public static void ApplyTweaks(RushInterface rush) {
12471247 beginWithRings = Properties . Settings . Default . Tweak_BeginWithRings ,
12481248 fieldOfView = Properties . Settings . Default . Tweak_FieldOfView ;
12491249
1250- bool forceMSAA = Properties . Settings . Default . Tweak_ForceMSAA ,
1251- tailsFlightLimit = Properties . Settings . Default . Tweak_TailsFlightLimit ;
1250+ bool forceMSAA = Properties . Settings . Default . Tweak_ForceMSAA ;
12521251
12531252 // Field of View
12541253 if ( fieldOfView != 90 && system == "xenon" ) {
@@ -1401,7 +1400,6 @@ public static void ApplyTweaks(RushInterface rush) {
14011400
14021401 if ( cameraHeight != 70 ) proceed ++ ;
14031402 if ( hammerRange != 50 ) proceed ++ ;
1404- if ( ! tailsFlightLimit ) proceed ++ ;
14051403 if ( beginWithRings != 0 ) proceed ++ ;
14061404
14071405 if ( proceed != 0 ) {
@@ -1438,13 +1436,6 @@ public static void ApplyTweaks(RushInterface rush) {
14381436 BeginWithRings ( Path . Combine ( tweak , $ "player\\ { system } \\ player\\ ") , beginWithRings ) ;
14391437 }
14401438
1441- // Unlock Tails' Flight Limit
1442- if ( tailsFlightLimit ) {
1443- rush . Status = $ "Tweaking Characters...";
1444- Console . WriteLine ( $ "[{ DateTime . Now : HH:mm:ss tt} ] [Tweak] <player.arc> Unlocked Tails' flight limit...") ;
1445- UnlockTailsFlightLimit ( Path . Combine ( tweak , $ "player\\ { system } \\ player\\ tails.lub") ) ;
1446- }
1447-
14481439 // Repack archive as tweak
14491440 ModEngine . RepackARC ( tweak , archive ) ;
14501441 }
@@ -1701,35 +1692,6 @@ private static void BeginWithRings(string directoryRoot, decimal rings) {
17011692 Console . WriteLine ( $ "[{ DateTime . Now : HH:mm:ss tt} ] [Error] Begin with Rings\n { ex } ") ;
17021693 ModEngine . skipped . Add ( "► Begin with Rings (check the debug log for more information)" ) ;
17031694 }
1704- #endif
1705- }
1706-
1707- private static void UnlockTailsFlightLimit ( string directoryRoot ) {
1708- #if ! DEBUG
1709- try {
1710- #endif
1711- PatchEngine . DecompileLua ( directoryRoot ) ;
1712- string [ ] editedLua = File . ReadAllLines ( directoryRoot ) ;
1713- int lineNum = 0 ;
1714- decimal origTimer = 0 ;
1715-
1716- foreach ( string line in editedLua ) {
1717- string [ ] tempLine = line . Split ( ' ' ) ;
1718-
1719- if ( tempLine [ 0 ] == "c_flight_timer" ) origTimer = decimal . Parse ( tempLine [ 2 ] ) ;
1720-
1721- if ( tempLine [ 0 ] == "c_flight_timer_b" ) {
1722- tempLine [ 2 ] = ( ( ( origTimer * 1000 ) + 125 ) / 1000 ) . ToString ( ) ;
1723- editedLua [ lineNum ] = string . Join ( " " , tempLine ) ;
1724- }
1725- lineNum ++ ;
1726- }
1727- File . WriteAllLines ( directoryRoot , editedLua ) ;
1728- #if ! DEBUG
1729- } catch ( Exception ex ) {
1730- Console . WriteLine ( $ "[{ DateTime . Now : HH:mm:ss tt} ] [Error] Unlock Tails' Flight Limit\n { ex } ") ;
1731- ModEngine . skipped . Add ( "► Unlock Tails' Flight Limit (check the debug log for more information)" ) ;
1732- }
17331695#endif
17341696 }
17351697 }
0 commit comments