1
0
Fork 0
taleweave-ai/adventure/sim_systems/hunger_logic.yaml

88 lines
1.7 KiB
YAML
Raw Normal View History

2024-05-05 20:50:51 +00:00
rules:
2024-05-05 22:45:18 +00:00
# cooking logic
- group: cooking
match:
2024-05-05 22:45:18 +00:00
type: item
edible: true
cooked: false
chance: 0.1
2024-05-05 22:45:18 +00:00
set:
spoiled: true
- group: cooking
match:
2024-05-05 22:45:18 +00:00
type: item
edible: true
cooked: true
chance: 0.05
2024-05-05 22:45:18 +00:00
set:
spoiled: true
2024-05-05 20:50:51 +00:00
# hunger logic
- group: hunger
match:
2024-05-05 20:50:51 +00:00
type: actor
hunger: full
chance: 0.1
2024-05-05 20:50:51 +00:00
set:
hunger: hungry
# hunger initialization
- group: hunger
rule: |
2024-05-05 20:50:51 +00:00
"hunger" not in attributes
set:
hunger: full
2024-05-05 20:50:51 +00:00
2024-05-05 22:45:18 +00:00
# thirst logic
- group: thirst
match:
2024-05-05 22:45:18 +00:00
type: actor
thirst: hydrated
chance: 0.1
2024-05-05 20:50:51 +00:00
set:
2024-05-05 22:45:18 +00:00
thirst: thirsty
# thirst initialization
- group: thirst
rule: |
2024-05-05 22:45:18 +00:00
"thirst" not in attributes
2024-05-05 20:50:51 +00:00
set:
2024-05-05 22:45:18 +00:00
thirst: hydrated
labels:
edible:
true:
backstory: You are edible.
description: This item is edible.
false:
backstory: You are not edible.
description: This item is not edible.
cooked:
true:
backstory: You are cooked.
description: This item is cooked.
false:
backstory: You are raw.
description: This item is raw.
spoiled:
true:
backstory: You are rotten and inedible.
description: This item is rotten and inedible.
false:
backstory: You are fresh and edible.
description: This item is fresh and edible.
hunger:
full:
backstory: You are have eaten recently and are full.
description: ~
hungry:
backstory: You are hungry and need to eat.
description: They look hungry.
thirst:
hydrated:
backstory: You are hydrated.
description: ~
thirsty:
backstory: You are thirsty and need to drink.
description: They look thirsty.