2024-05-19 22:13:16 +00:00
|
|
|
rules:
|
|
|
|
# weather logic
|
|
|
|
- group: weather
|
|
|
|
match:
|
|
|
|
type: room
|
2024-05-29 00:55:32 +00:00
|
|
|
environment: outdoor
|
2024-05-27 13:47:58 +00:00
|
|
|
weather: clear
|
2024-05-19 22:13:16 +00:00
|
|
|
chance: 0.1
|
|
|
|
set:
|
2024-05-27 13:47:58 +00:00
|
|
|
weather: clouds
|
2024-05-19 22:13:16 +00:00
|
|
|
|
|
|
|
- group: weather
|
|
|
|
match:
|
|
|
|
type: room
|
2024-05-29 00:55:32 +00:00
|
|
|
environment: outdoor
|
2024-05-27 13:47:58 +00:00
|
|
|
weather: clouds
|
2024-05-19 22:13:16 +00:00
|
|
|
chance: 0.1
|
|
|
|
set:
|
2024-05-27 13:47:58 +00:00
|
|
|
weather: rain
|
2024-05-19 22:13:16 +00:00
|
|
|
|
|
|
|
- group: weather
|
|
|
|
match:
|
|
|
|
type: room
|
2024-05-29 00:55:32 +00:00
|
|
|
environment: outdoor
|
2024-05-27 13:47:58 +00:00
|
|
|
weather: rain
|
2024-05-19 22:13:16 +00:00
|
|
|
chance: 0.1
|
|
|
|
set:
|
2024-05-27 13:47:58 +00:00
|
|
|
weather: clear
|
2024-05-19 22:13:16 +00:00
|
|
|
|
|
|
|
- group: weather
|
|
|
|
match:
|
|
|
|
type: room
|
2024-05-29 00:55:32 +00:00
|
|
|
environment: outdoor
|
2024-05-27 13:47:58 +00:00
|
|
|
weather: clouds
|
2024-05-19 22:13:16 +00:00
|
|
|
chance: 0.1
|
|
|
|
set:
|
2024-05-27 13:47:58 +00:00
|
|
|
weather: clear
|
2024-05-19 22:13:16 +00:00
|
|
|
|
2024-05-27 14:22:19 +00:00
|
|
|
# weather initial state
|
|
|
|
- group: weather
|
2024-05-27 17:03:39 +00:00
|
|
|
match:
|
|
|
|
type: room
|
2024-05-29 00:55:32 +00:00
|
|
|
environment: outdoor
|
2024-05-27 14:22:19 +00:00
|
|
|
rule: |
|
|
|
|
"weather" not in attributes
|
|
|
|
set:
|
|
|
|
weather: clear
|
|
|
|
|
2024-05-19 22:13:16 +00:00
|
|
|
labels:
|
|
|
|
- match:
|
|
|
|
type: room
|
2024-05-27 13:47:58 +00:00
|
|
|
weather: clear
|
|
|
|
rule: |
|
|
|
|
"time" not in attributes or attributes&.time in ["morning", "day"]
|
2024-05-19 22:13:16 +00:00
|
|
|
backstory: The sun is shining brightly.
|
|
|
|
description: The sun is shining brightly.
|
|
|
|
- match:
|
|
|
|
type: room
|
2024-05-27 13:47:58 +00:00
|
|
|
weather: clear
|
|
|
|
rule: |
|
|
|
|
"time" in attributes and attributes&.time in ["evening", "night"]
|
|
|
|
backstory: The moon is shining brightly.
|
|
|
|
description: The moon is shining brightly.
|
|
|
|
- match:
|
|
|
|
type: room
|
|
|
|
weather: clouds
|
2024-05-19 22:13:16 +00:00
|
|
|
backstory: The sky is overcast.
|
|
|
|
description: The sky is overcast.
|
|
|
|
- match:
|
|
|
|
type: room
|
2024-05-27 13:47:58 +00:00
|
|
|
weather: rain
|
|
|
|
backstory: Rain is falling from the cloudy sky.
|
|
|
|
description: Rain is falling from the cloudy sky.
|