Further changes to cloud and fog weights

This commit is contained in:
Dev 2024-10-18 10:55:35 +01:00
parent 27552986ed
commit d1a167d78c
2 changed files with 5 additions and 3 deletions

View File

@ -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": {

View File

@ -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 {