Skip to content

InspectTreasure

Search a treasure feature for a treasure trap: thief-only, one turn.

Full documentation: InspectTreasure. Wire type: inspect_treasure.

Legal session modes: exploring

JSON Schema

{
  "description": "Search a treasure feature for a treasure trap: thief-only, one turn.\n\nThe party must be exploring a dungeon (see\n[`EnterDungeon`][osrlib.crawl.commands.EnterDungeon]), with light. One attempt\nper character per feature.\n\nModes:\n    `exploring`\n\nRejections:\n    - `session.command.wrong_mode` \u2014 the session is not exploring a dungeon.\n    - `session.command.unknown_member` \u2014 `character_id` names no party member.\n    - `session.command.member_incapacitated` \u2014 the member cannot act.\n    - `exploration.trap.not_a_thief` \u2014 the member has no thief skills.\n    - `exploration.feature.unknown` \u2014 `feature_id` names no treasure cache on\n      this cell.\n    - `exploration.action.requires_light` \u2014 inspecting needs real light.\n    - `exploration.search.already_tried` \u2014 this character already inspected\n      this feature.\n\nEvents:\n    [`DetectionRolledEvent`][osrlib.crawl.events.DetectionRolledEvent] with the\n    skill roll, then a [`TrapEvent`][osrlib.crawl.events.TrapEvent] with code\n    `exploration.trap.found` or a\n    [`SearchCompletedEvent`][osrlib.crawl.events.SearchCompletedEvent]\n    reporting nothing. One turn passes with its usual follow-on events.",
  "properties": {
    "command_type": {
      "const": "inspect_treasure",
      "default": "inspect_treasure",
      "title": "Command Type",
      "type": "string"
    },
    "character_id": {
      "title": "Character Id",
      "type": "string"
    },
    "feature_id": {
      "title": "Feature Id",
      "type": "string"
    }
  },
  "required": [
    "character_id",
    "feature_id"
  ],
  "title": "InspectTreasure",
  "type": "object"
}