Menu

#299 Add tags to denote and handle food attributes

open
nobody
None
5
False
2025-02-08
2025-02-08
No

Common tags could include:
raw: uncooked items
cooked: cooked items
animal: flesh and animal products
vegetable: non-animal products, including salt
flesh: bodyparts (raw or cooked), or meals containing bodyparts
spoiled: something that has degraded from its original condition
poison: something treated with a poison or toxin, so that it can affect all players
alcohol_weak: beers, wines, ales
alcohol_strong: distilled alcohols, rum

Not sure how to store it, maybe just as a comma-separated string? I guess if you only consult the attributes it during the processes of eating, cooking, etc, then casting the string into a list/array at that time isn't so bad.

For actual object handling, a few starter behaviors come to mind:

If the player is a humanoid (excepting trolls), and the food item is raw and flesh, they gain only 25% food value from it. Additionally, they must make a Con save to avoid contracting a random disease, with a rough chance of about 5%.

If the player is a quetz or dragon, and the food item is cooked or vegetable, then they gain only 25% food value from it. Additionally, they must make a Con save to avoid a debuff, lasting maybe a few minutes.

When cooking, any spoiled ingredients force the result to be slag.

When cooking, the final result inherits all tags of the ingredients, except "raw", and adds the "cooked" tag.

Discussion


Log in to post a comment.

Monday.com Logo