public static float MaxTemperatureAtTile(int tile) { float num = float.MinValue; for (int i = 0; i < 3600000; i += 26999) { num = Mathf.Max(num, GenTemperature.GetTemperatureFromSeasonAtTile(i, tile)); } return(num); }
public static float GetTemperatureAtTile(int tile) { Map map = Current.Game.FindMap(tile); if (map != null) { return(map.mapTemperature.OutdoorTemp); } return(GenTemperature.GetTemperatureFromSeasonAtTile(GenTicks.TicksAbs, tile)); }
public static float MinTemperatureAtTile(int tile) { float num = 3.40282347E+38f; for (int i = 0; i < 3600000; i += 26999) { num = Mathf.Min(num, GenTemperature.GetTemperatureFromSeasonAtTile(i, tile)); } return(num); }
public static float AverageTemperatureAtTileForTwelfth(int tile, Twelfth twelfth) { int num = 30000; int num2 = 300000 * (int)twelfth; float num3 = 0f; for (int i = 0; i < 120; i++) { int absTick = num2 + num + Mathf.RoundToInt((float)((float)i / 120.0 * 300000.0)); num3 += GenTemperature.GetTemperatureFromSeasonAtTile(absTick, tile); } return((float)(num3 / 120.0)); }