{
  "format": "chargen.brewery.entry",
  "version": 1,
  "game": null,
  "kind": "referencedefinition",
  "entry": {
    "name": "Ego",
    "summary": "Ego measures how fiercely the sorcerer defends their certainty when experience challenges it.",
    "rules_text": "Begin at Ego 1; the range is 1\u20135. Higher ratings make criticism, failure, and contradictory evidence harder for the character to accept. The Storyteller may increase Ego after experiences such as severe failure, humiliation, or a challenge to the character's Paradigm. Meaningful acceptance or personal growth can lower it.\n\nFor a roll, replace ordinary dice with one Ego die per point of Ego. On a successful roll, any Ego die showing 10 produces an Egotistical Success; this may lower Ego by one, to a minimum of 1. On a failed roll, any Ego die showing 1 produces an Egotistical Failure and raises Ego by one, to a maximum of 5. At Ego 5, another Egotistical Failure causes a Paradigm Crisis.\n\nThe source does not explain how to handle a pool smaller than Ego, nor whether several qualifying faces create multiple adjustments. Those cases remain unspecified rather than receiving invented automation.",
    "setting_text": "",
    "character_scope": "unspecified"
  },
  "rows": [
    {
      "id": "1",
      "model": "referencedefinition",
      "fields": {
        "category": null,
        "notes": {
          "implementation": {
            "initial": 1,
            "maximum": 5,
            "minimum": 1,
            "source_game": "Sorcerer v5",
            "failure_face": 1,
            "success_face": 10,
            "die_replacement": "one_per_ego",
            "small_pool_policy": null,
            "multiple_trigger_policy": 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": "Starting Ego",
        "value": "1"
      }
    },
    {
      "id": "4",
      "model": "ruledetail",
      "fields": {
        "row_key": "detail-2",
        "order": 2,
        "label": "Range",
        "value": "1\u20135"
      }
    },
    {
      "id": "5",
      "model": "ruledetail",
      "fields": {
        "row_key": "detail-3",
        "order": 3,
        "label": "Dice",
        "value": "Replace one ordinary die per point of Ego"
      }
    },
    {
      "id": "6",
      "model": "ruledetail",
      "fields": {
        "row_key": "detail-4",
        "order": 4,
        "label": "Success trigger",
        "value": "Successful roll with an Ego 10"
      }
    },
    {
      "id": "7",
      "model": "ruledetail",
      "fields": {
        "row_key": "detail-5",
        "order": 5,
        "label": "Failure trigger",
        "value": "Failed roll with an Ego 1"
      }
    },
    {
      "id": "8",
      "model": "ruledetail",
      "fields": {
        "row_key": "brew-sources",
        "order": 90,
        "label": "Sources",
        "value": "Sorcerer v5 Core Rulebook, version 1.0, PDF pp. 13\u201316."
      }
    },
    {
      "id": "9",
      "model": "sourcelocator",
      "fields": {
        "row_key": "source-pages",
        "order": 0,
        "edition": {
          "reference": "57012eaa-b717-46dd-bc98-18e44eb796b8"
        },
        "chapter": "ego",
        "section": "Ego",
        "printed_page_start": "",
        "printed_page_end": "",
        "pdf_page_start": 13,
        "pdf_page_end": 16,
        "fragment_anchor": "",
        "heading_path": "Ego",
        "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": "entryrelationship",
      "fields": {
        "row_key": "child-ego-ratings",
        "order": 17,
        "target": {
          "reference": "4495aade-cda4-4f65-b299-8a00d3eecb9a"
        },
        "relation": {
          "reference": "5f7eca3a-f364-4d09-8a75-81d0b0189c0a"
        },
        "requirements": null,
        "explanation": "Each increase in Ego makes the character's response to uncertainty more restrictive."
      }
    },
    {
      "id": "12",
      "model": "entryrelationship",
      "fields": {
        "row_key": "child-paradigm-crisis",
        "order": 18,
        "target": {
          "reference": "22007dbe-f7f7-4ef5-b987-9412f8ed712d"
        },
        "relation": {
          "reference": "5f7eca3a-f364-4d09-8a75-81d0b0189c0a"
        },
        "requirements": null,
        "explanation": "At Ego 5, another Egotistical Failure can trap the character in an urgent need to prove themselves right."
      }
    },
    {
      "id": "13",
      "model": "brewdefinition",
      "fields": {
        "row_key": "definition",
        "order": 0,
        "definition": {
          "steps": [
            {
              "title": "How it works",
              "instructions": "Begin at Ego 1; the range is 1\u20135. Higher ratings make criticism, failure, and contradictory evidence harder for the character to accept. The Storyteller may increase Ego after experiences such as severe failure, humiliation, or a challenge to the character's Paradigm. Meaningful acceptance or personal growth can lower it."
            },
            {
              "title": "Rule detail 2",
              "instructions": "For a roll, replace ordinary dice with one Ego die per point of Ego. On a successful roll, any Ego die showing 10 produces an Egotistical Success; this may lower Ego by one, to a minimum of 1. On a failed roll, any Ego die showing 1 produces an Egotistical Failure and raises Ego by one, to a maximum of 5. At Ego 5, another Egotistical Failure causes a Paradigm Crisis."
            },
            {
              "title": "Rule detail 3",
              "instructions": "The source does not explain how to handle a pool smaller than Ego, nor whether several qualifying faces create multiple adjustments. Those cases remain unspecified rather than receiving invented automation."
            }
          ],
          "fields": [
            {
              "key": "ego",
              "type": "number",
              "label": "Current Ego",
              "initial": 1,
              "integer": true,
              "maximum": 5,
              "minimum": 1,
              "section": "Inputs",
              "help_text": "Ego starts at 1 and remains between 1 and 5."
            },
            {
              "key": "pool",
              "type": "number",
              "label": "Total dice pool",
              "initial": 0,
              "integer": true,
              "maximum": null,
              "minimum": 0,
              "section": "Inputs",
              "help_text": ""
            },
            {
              "key": "successful_roll",
              "type": "boolean",
              "label": "The roll succeeded",
              "initial": false,
              "section": "Conditions"
            },
            {
              "key": "ego_ten",
              "type": "boolean",
              "label": "At least one Ego die shows 10",
              "initial": false,
              "section": "Conditions"
            },
            {
              "key": "ego_one",
              "type": "boolean",
              "label": "At least one Ego die shows 1",
              "initial": false,
              "section": "Conditions"
            }
          ],
          "version": 1,
          "mechanics": [
            {
              "name": "Ego dice requested",
              "expression": {
                "symbol": "ego"
              },
              "explanation": "Replace this many ordinary dice. If the pool is smaller, the source does not specify how to handle the shortage."
            },
            {
              "name": "Pool supports replacement",
              "expression": {
                "op": "gte",
                "args": [
                  {
                    "symbol": "pool"
                  },
                  {
                    "symbol": "ego"
                  }
                ]
              },
              "explanation": "No means a small-pool ruling is needed before assembling the dice."
            },
            {
              "name": "Egotistical Success",
              "expression": {
                "op": "all",
                "args": [
                  {
                    "symbol": "successful_roll"
                  },
                  {
                    "symbol": "ego_ten"
                  }
                ]
              },
              "explanation": "A successful roll with at least one Ego die showing 10."
            },
            {
              "name": "Egotistical Failure",
              "expression": {
                "op": "all",
                "args": [
                  {
                    "op": "not",
                    "args": [
                      {
                        "symbol": "successful_roll"
                      }
                    ]
                  },
                  {
                    "symbol": "ego_one"
                  }
                ]
              },
              "explanation": "A failed roll with at least one Ego die showing 1."
            },
            {
              "name": "Ego after accepting the success reduction",
              "expression": {
                "op": "max",
                "args": [
                  {
                    "literal": 1
                  },
                  {
                    "op": "subtract",
                    "args": [
                      {
                        "symbol": "ego"
                      },
                      {
                        "literal": 1
                      }
                    ]
                  }
                ]
              },
              "explanation": "Optional: apply only following an Egotistical Success; never below 1."
            },
            {
              "name": "Ego after an Egotistical Failure",
              "expression": {
                "op": "min",
                "args": [
                  {
                    "literal": 5
                  },
                  {
                    "op": "add",
                    "args": [
                      {
                        "symbol": "ego"
                      },
                      {
                        "literal": 1
                      }
                    ]
                  }
                ]
              },
              "explanation": "Apply only after an Egotistical Failure; never above 5."
            },
            {
              "name": "Paradigm Crisis triggered",
              "expression": {
                "op": "all",
                "args": [
                  {
                    "op": "eq",
                    "args": [
                      {
                        "symbol": "ego"
                      },
                      {
                        "literal": 5
                      }
                    ]
                  },
                  {
                    "op": "all",
                    "args": [
                      {
                        "op": "not",
                        "args": [
                          {
                            "symbol": "successful_roll"
                          }
                        ]
                      },
                      {
                        "symbol": "ego_one"
                      }
                    ]
                  }
                ]
              },
              "explanation": "An Egotistical Failure while already at Ego 5 triggers a crisis."
            }
          ]
        }
      }
    }
  ]
}