public void advanceSeason(){
  int oldPrestige=teamPrestige;
  if (this != league.saveBless && this != league.saveCurse) {
    if (wonRivalryGame && (teamPrestige - league.findTeamAbbr(rivalTeam).teamPrestige < 20)) {
      teamPrestige+=2;
    }
 else     if (!wonRivalryGame && (league.findTeamAbbr(rivalTeam).teamPrestige - teamPrestige < 20 || name.equals("American Samoa"))) {
      teamPrestige-=2;
    }
    int expectedPollFinish=100 - teamPrestige;
    int diffExpected=expectedPollFinish - rankTeamPollScore;
    oldPrestige=teamPrestige;
    if ((teamPrestige > 45 && !name.equals("American Samoa")) || diffExpected > 0) {
      teamPrestige=(int)Math.pow(teamPrestige,1 + (float)diffExpected / 1500);
    }
    if (rankTeamPollScore == 1) {
      teamPrestige+=3;
    }
  }
  if (teamPrestige > 95)   teamPrestige=95;
  if (teamPrestige < 45 && !name.equals("American Samoa"))   teamPrestige=45;
  if (league.findTeamAbbr(rivalTeam).userControlled && league.isHardMode()) {
    Team rival=league.findTeamAbbr(rivalTeam);
    if (teamPrestige < rival.teamPrestige - 10) {
      teamPrestige=rival.teamPrestige - 10;
    }
  }
 else   if (userControlled && league.isHardMode()) {
    Team rival=league.findTeamAbbr(rivalTeam);
    if (rival.teamPrestige < teamPrestige - 10) {
      rival.teamPrestige=teamPrestige - 10;
    }
  }
  diffPrestige=teamPrestige - oldPrestige;
  if (userControlled)   checkHallofFame();
  checkCareerRecords(league.leagueRecords);
  if (league.userTeam == this)   checkCareerRecords(league.userTeamRecords);
  advanceSeasonPlayers();
}

public void advanceSeason ( ) { int oldPrestige = teamPrestige ; if ( this != league . saveBless && this != league . saveCurse ) { if ( wonRivalryGame && ( teamPrestige - league . findTeamAbbr ( rivalTeam ) . teamPrestige < 20 ) ) { teamPrestige += 2 ; } else if ( ! wonRivalryGame && ( league . findTeamAbbr ( rivalTeam ) . teamPrestige - teamPrestige < 20 || name . equals ( "American Samoa" ) ) ) { teamPrestige -= 2 ; } int expectedPollFinish = 100 - teamPrestige ; int diffExpected = expectedPollFinish - rankTeamPollScore ; oldPrestige = teamPrestige ; if ( ( teamPrestige > 45 && ! name . equals ( "American Samoa" ) ) || diffExpected > 0 ) { teamPrestige = ( int ) Math . pow ( teamPrestige , 1 + ( float ) diffExpected / 1500 ) ; } if ( rankTeamPollScore == 1 ) { teamPrestige += 3 ; } } if ( teamPrestige > 95 ) teamPrestige = 95 ; if ( teamPrestige < 45 && ! name . equals ( "American Samoa" ) ) teamPrestige = 45 ; if ( league . findTeamAbbr ( rivalTeam ) . userControlled && league . isHardMode ( ) ) { Team rival = league . findTeamAbbr ( rivalTeam ) ; if ( teamPrestige < rival . teamPrestige - 10 ) { teamPrestige = rival . teamPrestige - 10 ; } } else if ( userControlled && league . isHardMode ( ) ) { Team rival = league . findTeamAbbr ( rivalTeam ) ; if ( rival . teamPrestige < teamPrestige - 10 ) { rival . teamPrestige = teamPrestige - 10 ; } } diffPrestige = teamPrestige - oldPrestige ; if ( userControlled ) checkHallofFame ( ) ; checkCareerRecords ( league . leagueRecords ) ; if ( league . userTeam == this ) checkCareerRecords ( league . userTeamRecords ) ; advanceSeasonPlayers ( ) ; }
advance season , hiring new coach if needed and calculating new prestige level .
