27 lines
466 B
YAML
27 lines
466 B
YAML
rules:
|
|
# sleeping logic
|
|
- match:
|
|
type: actor
|
|
sleep: rested
|
|
chance: 0.1
|
|
set:
|
|
sleep: tired
|
|
|
|
# sleeping initialization
|
|
- rule: |
|
|
"sleep" not in attributes
|
|
set:
|
|
sleep: tired
|
|
|
|
labels:
|
|
- match:
|
|
type: actor
|
|
sleep: rested
|
|
backstory: You are well-rested.
|
|
description: They look well-rested.
|
|
- match:
|
|
type: actor
|
|
sleep: tired
|
|
backstory: You are tired.
|
|
description: They look tired.
|