public string GetWeatherForDate(WorldDate date, string context = "Default") { GameLocation.LocationContext ctx; switch (context) { case "Default": ctx = GameLocation.LocationContext.Default; break; case "Island": ctx = GameLocation.LocationContext.Island; break; case "Desert": return("Sun"); default: throw new ArgumentException("Invalid location context"); } int weather = Mod.Weather.GetWeatherForDate(Mod.GetBaseWorldSeed(), date, ctx); return(WeatherHelper.GetWeatherStringID(weather)); }