Skip to content

RemoveTreasureTrap

Remove a found treasure trap: thief-only, one turn; failure springs it.

Full documentation: RemoveTreasureTrap. Wire type: remove_treasure_trap.

Legal session modes: exploring

JSON Schema

{
  "description": "Remove a found treasure trap: thief-only, one turn; failure springs it.\n\nThe party must be exploring a dungeon (see\n[`EnterDungeon`][osrlib.crawl.commands.EnterDungeon]), with light, and the trap\nmust already have been found by\n[`InspectTreasure`][osrlib.crawl.commands.InspectTreasure].\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 trapped feature on\n      this cell.\n    - `exploration.trap.not_found` \u2014 the trap has not been found yet.\n    - `exploration.trap.already_resolved` \u2014 the trap was already removed or has\n      already sprung.\n    - `exploration.action.requires_light` \u2014 removal needs real light.\n    - `exploration.search.already_tried` \u2014 this character already attempted the\n      removal.\n\nEvents:\n    [`DetectionRolledEvent`][osrlib.crawl.events.DetectionRolledEvent] with the\n    skill roll, then a [`TrapEvent`][osrlib.crawl.events.TrapEvent]:\n    `exploration.trap.removed` on success, `exploration.trap.sprung` on failure\n    \u2014 the sprung trap resolves at once against the thief (saving throws,\n    damage, conditions, each its own event). One turn passes.",
  "properties": {
    "command_type": {
      "const": "remove_treasure_trap",
      "default": "remove_treasure_trap",
      "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": "RemoveTreasureTrap",
  "type": "object"
}