2024-05-05 20:50:51 +00:00
|
|
|
rules:
|
2024-05-05 22:45:18 +00:00
|
|
|
# cooking logic
|
|
|
|
- match:
|
|
|
|
type: item
|
|
|
|
edible: true
|
|
|
|
cooked: false
|
2024-05-08 01:42:32 +00:00
|
|
|
chance: 0.1
|
2024-05-05 22:45:18 +00:00
|
|
|
set:
|
|
|
|
spoiled: true
|
|
|
|
|
|
|
|
- match:
|
|
|
|
type: item
|
|
|
|
edible: true
|
|
|
|
cooked: true
|
2024-05-08 01:42:32 +00:00
|
|
|
chance: 0.05
|
2024-05-05 22:45:18 +00:00
|
|
|
set:
|
|
|
|
spoiled: true
|
|
|
|
|
2024-05-05 20:50:51 +00:00
|
|
|
# hunger logic
|
|
|
|
- match:
|
|
|
|
type: actor
|
|
|
|
hunger: full
|
2024-05-08 01:42:32 +00:00
|
|
|
chance: 0.1
|
2024-05-05 20:50:51 +00:00
|
|
|
set:
|
|
|
|
hunger: hungry
|
|
|
|
|
|
|
|
# hunger initialization
|
|
|
|
- rule: |
|
|
|
|
"hunger" not in attributes
|
|
|
|
set:
|
2024-05-08 01:42:32 +00:00
|
|
|
hunger: full
|
2024-05-05 20:50:51 +00:00
|
|
|
|
2024-05-05 22:45:18 +00:00
|
|
|
# thirst logic
|
2024-05-05 20:50:51 +00:00
|
|
|
- match:
|
2024-05-05 22:45:18 +00:00
|
|
|
type: actor
|
|
|
|
thirst: hydrated
|
2024-05-08 01:42:32 +00:00
|
|
|
chance: 0.1
|
2024-05-05 20:50:51 +00:00
|
|
|
set:
|
2024-05-05 22:45:18 +00:00
|
|
|
thirst: thirsty
|
|
|
|
|
|
|
|
# thirst initialization
|
|
|
|
- rule: |
|
|
|
|
"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.
|