{
  "format": "chargen.brewery.entry",
  "version": 1,
  "game": null,
  "kind": "referencedefinition",
  "entry": {
    "name": "Enemy",
    "summary": "An individual or group uses their capabilities against the character.",
    "rules_text": "Treat the opponent as the hostile counterpart of an Ally. The Flaw is rated two dots below the enemy's Effectiveness.\n\nThe PDF does not explain how that subtraction interacts with Effectiveness values too low to produce a positive Flaw rating. It also gives no separate Reliability requirement for this Flaw.",
    "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",
            "advantage_type": "Flaw",
            "rating_formula": "Effectiveness - 2",
            "low_effectiveness_resolution": null
          }
        }
      }
    },
    {
      "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": "Flaw"
      }
    },
    {
      "id": "4",
      "model": "ruledetail",
      "fields": {
        "row_key": "detail-2",
        "order": 2,
        "label": "Dots",
        "value": "1+"
      }
    },
    {
      "id": "5",
      "model": "ruledetail",
      "fields": {
        "row_key": "family",
        "order": 20,
        "label": "Family",
        "value": "Allies"
      }
    },
    {
      "id": "6",
      "model": "ruledetail",
      "fields": {
        "row_key": "brew-sources",
        "order": 90,
        "label": "Sources",
        "value": "Sorcerer v5 Core Rulebook, version 1.0, PDF pp. 59."
      }
    },
    {
      "id": "7",
      "model": "sourcelocator",
      "fields": {
        "row_key": "source-pages",
        "order": 0,
        "edition": {
          "reference": "57012eaa-b717-46dd-bc98-18e44eb796b8"
        },
        "chapter": "background-flaws",
        "section": "Enemy",
        "printed_page_start": "",
        "printed_page_end": "",
        "pdf_page_start": 59,
        "pdf_page_end": 59,
        "fragment_anchor": "",
        "heading_path": "Enemy",
        "bounding_boxes": {}
      }
    },
    {
      "id": "8",
      "model": "entrycitation",
      "fields": {
        "row_key": "pdf-source",
        "order": 0,
        "source": {
          "reference": "57012eaa-b717-46dd-bc98-18e44eb796b8"
        },
        "locator": {
          "local": "7"
        },
        "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": "9",
      "model": "brewdefinition",
      "fields": {
        "row_key": "design",
        "order": 0,
        "definition": {
          "steps": [
            {
              "title": "How it works",
              "instructions": "Treat the opponent as the hostile counterpart of an Ally. The Flaw is rated two dots below the enemy's Effectiveness."
            },
            {
              "title": "Rule detail 2",
              "instructions": "The PDF does not explain how that subtraction interacts with Effectiveness values too low to produce a positive Flaw rating. It also gives no separate Reliability requirement for this Flaw."
            }
          ],
          "fields": [
            {
              "key": "rating",
              "type": "number",
              "label": "Enemy 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": "An individual or group uses their capabilities against the character."
            },
            {
              "key": "effectiveness",
              "type": "number",
              "label": "Enemy Effectiveness",
              "initial": 1,
              "integer": true,
              "maximum": 4,
              "minimum": 1,
              "section": "Inputs",
              "help_text": ""
            }
          ],
          "version": 1,
          "mechanics": [
            {
              "name": "Dot cost",
              "expression": {
                "symbol": "rating"
              },
              "explanation": "The dots assigned to this flaw."
            },
            {
              "name": "Calculated Flaw dots",
              "expression": {
                "op": "subtract",
                "args": [
                  {
                    "symbol": "effectiveness"
                  },
                  {
                    "literal": 2
                  }
                ]
              },
              "explanation": "The printed formula is Effectiveness minus two. If the result is below one, it conflicts with the listed minimum and requires clarification."
            },
            {
              "name": "Formula meets the listed minimum",
              "expression": {
                "op": "gte",
                "args": [
                  {
                    "op": "subtract",
                    "args": [
                      {
                        "symbol": "effectiveness"
                      },
                      {
                        "literal": 2
                      }
                    ]
                  },
                  {
                    "literal": 1
                  }
                ]
              },
              "explanation": "No means the source does not resolve this rating; do not silently award zero or negative Flaw dots."
            }
          ]
        }
      }
    }
  ]
}