Further changes to cloud and fog weights
This commit is contained in:
parent
27552986ed
commit
d1a167d78c
@ -3,8 +3,8 @@
|
|||||||
"weather": {
|
"weather": {
|
||||||
"generateWeatherAmountHours": 24,
|
"generateWeatherAmountHours": 24,
|
||||||
"clouds": {
|
"clouds": {
|
||||||
"values": [-1, 0, 0.5, 1, 1.5],
|
"values": [-1, 0.03, 0, 0.5, 1],
|
||||||
"weights": [100, 15, 5, 4, 3]
|
"weights": [100, 22, 15, 5, 4]
|
||||||
},
|
},
|
||||||
"windSpeed": {
|
"windSpeed": {
|
||||||
"values": [0, 1, 2, 3, 4],
|
"values": [0, 1, 2, 3, 4],
|
||||||
@ -28,7 +28,7 @@
|
|||||||
},
|
},
|
||||||
"fog": {
|
"fog": {
|
||||||
"values": [0.002, 0.004, 0.008, 0.012, 0.087],
|
"values": [0.002, 0.004, 0.008, 0.012, 0.087],
|
||||||
"weights": [25, 8, 5, 5, 1]
|
"weights": [35, 6, 4, 3, 1]
|
||||||
},
|
},
|
||||||
"temp": {
|
"temp": {
|
||||||
"0": {
|
"0": {
|
||||||
|
@ -75,6 +75,8 @@ export class WeatherGenerator {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return randomised Weather data with help of config/weather.json
|
* 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
|
* @returns Randomised weather data
|
||||||
*/
|
*/
|
||||||
public generateWeather(currentSeason: Season, timestamp?: number): IWeather {
|
public generateWeather(currentSeason: Season, timestamp?: number): IWeather {
|
||||||
|
Loading…
Reference in New Issue
Block a user