{
  "format": "chargen.brewery.entry",
  "version": 1,
  "game": null,
  "kind": "referencedefinition",
  "entry": {
    "name": "Laboratory",
    "summary": "Equip the Sanctum for a particular research specialty.",
    "rules_text": "Requires Sanctum 2 or higher. Select one Science or Technology Specialty served by the facilities. Each dot adds one die to tests involving that Specialty.",
    "setting_text": "",
    "character_scope": "unspecified"
  },
  "rows": [
    {
      "id": "1",
      "model": "referencedefinition",
      "fields": {
        "category": null,
        "notes": {
          "implementation": {
            "maximum": null,
            "minimum": 1,
            "rating_text": "1+",
            "source_game": "Sorcerer v5",
            "requirements": {
              "Sanctum": {
                "minimum": 2
              }
            },
            "bonus_per_dot": 1,
            "advantage_type": "Merit"
          }
        }
      }
    },
    {
      "id": "2",
      "model": "ruledetail",
      "fields": {
        "row_key": "game",
        "order": 0,
        "label": "Game",
        "value": "Sorcerer v5"
      }
    },
    {
      "id": "3",
      "model": "ruledetail",
      "fields": {
        "row_key": "detail-1",
        "order": 1,
        "label": "Type",
        "value": "Merit"
      }
    },
    {
      "id": "4",
      "model": "ruledetail",
      "fields": {
        "row_key": "detail-2",
        "order": 2,
        "label": "Dots",
        "value": "1+"
      }
    },
    {
      "id": "5",
      "model": "ruledetail",
      "fields": {
        "row_key": "brew-requirements",
        "order": 3,
        "label": "Requirements",
        "value": "Sanctum 2+"
      }
    },
    {
      "id": "6",
      "model": "ruledetail",
      "fields": {
        "row_key": "detail-4",
        "order": 4,
        "label": "Choice",
        "value": "One Science or Technology Specialty"
      }
    },
    {
      "id": "7",
      "model": "ruledetail",
      "fields": {
        "row_key": "family",
        "order": 20,
        "label": "Family",
        "value": "Sanctum"
      }
    },
    {
      "id": "8",
      "model": "ruledetail",
      "fields": {
        "row_key": "brew-sources",
        "order": 90,
        "label": "Sources",
        "value": "Sorcerer v5 Core Rulebook, version 1.0, PDF pp. 62."
      }
    },
    {
      "id": "9",
      "model": "sourcelocator",
      "fields": {
        "row_key": "source-pages",
        "order": 0,
        "edition": {
          "reference": "57012eaa-b717-46dd-bc98-18e44eb796b8"
        },
        "chapter": "sanctum-merits",
        "section": "Laboratory",
        "printed_page_start": "",
        "printed_page_end": "",
        "pdf_page_start": 62,
        "pdf_page_end": 62,
        "fragment_anchor": "",
        "heading_path": "Laboratory",
        "bounding_boxes": {}
      }
    },
    {
      "id": "10",
      "model": "entrycitation",
      "fields": {
        "row_key": "pdf-source",
        "order": 0,
        "source": {
          "reference": "57012eaa-b717-46dd-bc98-18e44eb796b8"
        },
        "locator": {
          "local": "9"
        },
        "supports": "Source mechanics and scope; author corrections are separately cited.",
        "verified": true,
        "verification_notes": "Directly inspected supplied PDF; actual PDF pages used. Independent prose written for Chargen. Missing numerical procedures remain explicit."
      }
    },
    {
      "id": "11",
      "model": "brewdefinition",
      "fields": {
        "row_key": "design",
        "order": 0,
        "definition": {
          "steps": [
            {
              "title": "How it works",
              "instructions": "Requires Sanctum 2 or higher. Select one Science or Technology Specialty served by the facilities. Each dot adds one die to tests involving that Specialty."
            }
          ],
          "fields": [
            {
              "key": "rating",
              "type": "number",
              "label": "Laboratory dots",
              "initial": 1,
              "integer": true,
              "maximum": null,
              "minimum": 1,
              "section": "Inputs",
              "help_text": "The source gives a minimum but no upper dot limit. Default input is not a creation grant."
            },
            {
              "key": "details",
              "type": "text",
              "label": "Character-specific details",
              "section": "Character",
              "help_text": "Equip the Sanctum for a particular research specialty."
            },
            {
              "key": "sanctum_rating",
              "type": "number",
              "label": "Sanctum rating",
              "initial": 0,
              "integer": true,
              "maximum": 3,
              "minimum": 0,
              "section": "Inputs",
              "help_text": ""
            },
            {
              "key": "base_pool",
              "type": "number",
              "label": "Dice pool before this modifier",
              "initial": 0,
              "integer": true,
              "maximum": null,
              "minimum": 0,
              "section": "Inputs",
              "help_text": ""
            },
            {
              "key": "applies",
              "type": "boolean",
              "label": "The stated condition applies",
              "initial": false,
              "section": "Conditions"
            },
            {
              "key": "skill",
              "type": "choice",
              "label": "Laboratory Skill",
              "initial": "Science",
              "options": [
                "Science",
                "Technology"
              ],
              "section": "Character"
            },
            {
              "key": "specialty",
              "type": "text",
              "label": "Selected Specialty",
              "section": "Character",
              "help_text": ""
            }
          ],
          "version": 1,
          "mechanics": [
            {
              "name": "Dot cost",
              "expression": {
                "symbol": "rating"
              },
              "explanation": "The dots assigned to this merit."
            },
            {
              "name": "Sanctum prerequisite",
              "expression": {
                "op": "gte",
                "args": [
                  {
                    "symbol": "sanctum_rating"
                  },
                  {
                    "literal": 2
                  }
                ]
              },
              "explanation": "Requires Sanctum 2 or higher."
            },
            {
              "name": "Modifier",
              "expression": {
                "symbol": "rating"
              },
              "explanation": "Add the rating to one chosen Science or Technology Specialty in the equipped laboratory."
            },
            {
              "name": "Adjusted dice pool",
              "expression": {
                "op": "max",
                "args": [
                  {
                    "literal": 0
                  },
                  {
                    "op": "add",
                    "args": [
                      {
                        "symbol": "base_pool"
                      },
                      {
                        "symbol": "rating"
                      }
                    ]
                  }
                ]
              },
              "explanation": "Use only when the stated condition applies. Remove the modifier when it does not."
            }
          ]
        }
      }
    }
  ]
}