From d1a167d78c55956645da411933012cf3950f3f52 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 18 Oct 2024 10:55:35 +0100 Subject: [PATCH] Further changes to cloud and fog weights --- project/assets/configs/weather.json | 6 +++--- project/src/generators/WeatherGenerator.ts | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/project/assets/configs/weather.json b/project/assets/configs/weather.json index a04979a1..cb3c5d8a 100644 --- a/project/assets/configs/weather.json +++ b/project/assets/configs/weather.json @@ -3,8 +3,8 @@ "weather": { "generateWeatherAmountHours": 24, "clouds": { - "values": [-1, 0, 0.5, 1, 1.5], - "weights": [100, 15, 5, 4, 3] + "values": [-1, 0.03, 0, 0.5, 1], + "weights": [100, 22, 15, 5, 4] }, "windSpeed": { "values": [0, 1, 2, 3, 4], @@ -28,7 +28,7 @@ }, "fog": { "values": [0.002, 0.004, 0.008, 0.012, 0.087], - "weights": [25, 8, 5, 5, 1] + "weights": [35, 6, 4, 3, 1] }, "temp": { "0": { diff --git a/project/src/generators/WeatherGenerator.ts b/project/src/generators/WeatherGenerator.ts index 3579ba04..f2b489fd 100644 --- a/project/src/generators/WeatherGenerator.ts +++ b/project/src/generators/WeatherGenerator.ts @@ -75,6 +75,8 @@ export class WeatherGenerator { /** * Return randomised Weather data with help of config/weather.json + * @param currentSeason the currently active season + * @param timestamp OPTIONAL what timestamp to generate the weather data at, defaults to now when not supplied * @returns Randomised weather data */ public generateWeather(currentSeason: Season, timestamp?: number): IWeather {