| 12345678910111213141516171819202122232425262728293031323334 |
- # Weather probability table (D19: "roll from a probability table" is a
- # mechanism). On day-start the engine rolls a weighted pick from the current
- # season's table; weights are relative probabilities.
- id: default
- defaults:
- sunny: { name: Sunny }
- rain: { name: Rain }
- wind: { name: Wind }
- storm: { name: Storm }
- seasons:
- - season: spring
- weathers:
- - { id: sunny, weight: 50 }
- - { id: rain, weight: 30 }
- - { id: wind, weight: 15 }
- - { id: storm, weight: 5 }
- - season: summer
- weathers:
- - { id: sunny, weight: 70 }
- - { id: rain, weight: 15 }
- - { id: wind, weight: 10 }
- - { id: storm, weight: 5 }
- - season: autumn
- weathers:
- - { id: sunny, weight: 40 }
- - { id: rain, weight: 35 }
- - { id: wind, weight: 20 }
- - { id: storm, weight: 5 }
- - season: winter
- weathers:
- - { id: sunny, weight: 20 }
- - { id: rain, weight: 25 }
- - { id: wind, weight: 40 }
- - { id: storm, weight: 15 }
|