ExhaustionEvent
The party ran itself ragged, or has rested long enough to recover.
Full documentation: ExhaustionEvent. Wire type: exhaustion.
Default visibility: player
Message codes: encounter.exhaustion.gained, encounter.exhaustion.recovered
JSON Schema
{
"$defs": {
"Visibility": {
"description": "Who is allowed to see an event.\n\nEvery event has one of these two values, and the split exists because B/X keeps some rolls behind the\nreferee's screen. Filter a log on it before you show anything to a player, or call\n`GameSession.view`, which builds the player's and the referee's\nviews for you. A narrator playing referee reads both.\n\nThe values are the lowercase strings and they serialize into every event, so a renamed value is a\n`schema_version` bump.\n\nExamples:\n ```python\n from osrlib.core.events import DamageDealtEvent, HitPointsReportedEvent, Visibility\n\n log = [\n DamageDealtEvent(target_id=\"monster-0001\", amount=5),\n HitPointsReportedEvent(target_id=\"monster-0001\", current_hp=2, max_hp=7),\n ]\n shown = [event.code for event in log if event.visibility is Visibility.PLAYER]\n assert shown == [\"combat.damage.dealt\"] # the goblin's remaining hit points stay hidden\n ```",
"enum": [
"player",
"referee"
],
"title": "Visibility",
"type": "string"
}
},
"description": "The party ran itself ragged, or has rested long enough to recover.\n\nRunning flat out for a long chase costs a party 2 on its attack and damage rolls\nand makes it 2 easier to hit, until it rests. Emitted by\n`Evade` and `Wait`\nwhen a chase runs its full length, and recovered by\n`Rest` once three turns of rest have been\ncredited.",
"properties": {
"code": {
"title": "Code",
"type": "string",
"description": "What happened, as two or more lowercase segments separated by dots and namespaced by subsystem, like\n`combat.attack.hit`. This is what you branch on and what\n`format_message` looks up. Anything else raises a validation error."
},
"visibility": {
"$ref": "#/$defs/Visibility",
"default": "player",
"description": "Player visibility: the penalty is on the party's own sheets."
},
"event_type": {
"const": "exhaustion",
"default": "exhaustion",
"title": "Event Type",
"type": "string",
"description": "The wire discriminator, `exhaustion`."
}
},
"required": [
"code"
],
"title": "ExhaustionEvent",
"type": "object"
}