{
  "str_version": "1.0",
  "point_limit_default": 300,
  "faction_trait_max_cost": 30,
  "limits": {
    "point_limit_default": 300,
    "faction_trait_max_cost": 30,
    "unit_positive_max": 2,
    "unit_negative_max": 2,
    "weapon_positive_max": 2,
    "weapon_negative_max": 2,
    "weapon_second_positive_requires_negative": true,
    "warband_outsiders_max": 1,
    "army_point_limit_default": 1000,
    "special_actions_max": 7
  },
  "campaign": {
    "xp_per_advance": 300,
    "max_stat_advances": 2,
    "underdog_step": 25,
    "resources_dice": 2,
    "warband_size_multiplier": 2,
    "sell_fraction": 0.5,
    "injuries": [
      {
        "roll": 1,
        "name": "Leg wound",
        "effect": "−1″ base movement for the rest of the campaign.",
        "apply": {
          "attribute": {
            "id": "speed",
            "value": -1
          }
        }
      },
      {
        "roll": 2,
        "name": "Old wound",
        "effect": "−1 on all Defence saves for the rest of the campaign.",
        "apply": {
          "defence": 1
        }
      },
      {
        "roll": 3,
        "name": "Lost nerve",
        "effect": "Gains Cowardly for the rest of the campaign.",
        "apply": {
          "attribute": {
            "id": "cowardly"
          }
        }
      },
      {
        "roll": 4,
        "name": "Shaken",
        "effect": "Misses one additional game.",
        "apply": {
          "miss": 1
        }
      },
      {
        "roll": 5,
        "name": "A scar and a story",
        "effect": "No lasting effect. The unit gains 25 XP.",
        "apply": {
          "xp": 25
        }
      },
      {
        "roll": 6,
        "name": "Hardened",
        "effect": "No lasting effect. The unit gains Tough(1), or +1 to an existing Tough(x), up to Tough(3).",
        "apply": {
          "attribute": {
            "id": "tough",
            "value": 1,
            "max": 3
          }
        }
      }
    ],
    "advances": [
      {
        "roll": "1–2",
        "kind": "skill",
        "name": "+1 step Skill",
        "text": "never beyond 2+; at most two stat advances per unit."
      },
      {
        "roll": "3–4",
        "kind": "defence",
        "name": "+1 step Defence",
        "text": "never beyond 2+; at most two stat advances per unit."
      },
      {
        "roll": "5",
        "kind": "attribute",
        "name": "One positive unit attribute",
        "text": "of the player's choice, within the attribute limits."
      },
      {
        "roll": "6",
        "kind": "special",
        "name": "One special action",
        "text": "from a list the warband already uses; the unit gains Special(x) for that list if it has none."
      }
    ]
  },
  "stat_costs": {
    "skill": {
      "2": 64,
      "3": 32,
      "4": 16,
      "5": 8,
      "6": 4
    },
    "defence": {
      "2": 48,
      "3": 24,
      "4": 12,
      "5": 6,
      "6": 3
    }
  },
  "faction_trait_templates": {
    "conditional_buff": {
      "name": "Conditional Buff",
      "description": "Units gain a chosen buff under a chosen condition.",
      "pattern": "Units gain {buff} {condition}.",
      "slots": {
        "buff": {
          "type": "trait_buff"
        },
        "condition": {
          "type": "trait_condition"
        }
      },
      "cost": 0
    },
    "unpredictable_behaviour": {
      "name": "Unpredictable Behaviour",
      "description": "Units act normally near a friendly unit with a chosen attribute; otherwise they may behave unpredictably.",
      "pattern": "Within {range} of a friendly unit with {attribute}, units act normally. Otherwise roll a D6 at activation: 1 attacks the nearest friendly unit; 2-3 takes no action; 4-5 acts normally; 6 charges the nearest enemy with +2A.",
      "slots": {
        "range": {
          "type": "distance",
          "min": 3,
          "max": 6,
          "default": 6
        },
        "attribute": {
          "type": "attribute"
        }
      },
      "cost": 10
    },
    "revive": {
      "name": "Resilient",
      "description": "When taken Out of Action, roll a D6 at the end of the round; on a 5+ the unit returns where it fell, not Knocked Down.",
      "pattern": "When taken Out of Action, roll a D6 at the end of the round; on a 5+ the unit returns where it fell, not Knocked Down.",
      "slots": {},
      "cost": 30
    },
    "no_retreat": {
      "name": "No Retreat",
      "description": "Units never take morale checks or Skill checks caused by Fear, but cannot flee voluntarily or leave melee.",
      "pattern": "Units never take morale checks or Skill checks caused by Fear, but cannot flee voluntarily or leave melee.",
      "slots": {},
      "cost": 25
    },
    "post_action_move": {
      "name": "Unrelenting Advance",
      "description": "Outside melee, units may move an extra 3\" after their action.",
      "pattern": "Outside melee, units may move an extra 3\" after their action.",
      "slots": {},
      "cost": 20
    },
    "momentum": {
      "name": "Momentum",
      "description": "When a unit takes an enemy Out of Action, it may immediately move a short distance or make one free melee attack.",
      "pattern": "When a unit takes an enemy Out of Action, it may immediately move up to {range} or make one free melee attack.",
      "slots": {
        "range": {
          "type": "distance",
          "min": 1,
          "max": 4,
          "default": 3
        }
      },
      "cost": 20
    },
    "aura": {
      "name": "Aura",
      "description": "Enemies near several of this faction's units suffer a chosen penalty.",
      "pattern": "Enemies within {range} of {count} or more of this faction's units {effect}.",
      "slots": {
        "range": {
          "type": "distance",
          "min": 3,
          "max": 12,
          "default": 6
        },
        "count": {
          "type": "number",
          "min": 1,
          "max": 5,
          "default": 2
        },
        "effect": {
          "type": "enum",
          "options": {
            "morale": "suffer -1 to morale checks and Skill checks caused by Fear",
            "climb": "suffer -1 to climb and jump checks",
            "injury": "suffer -1 on injury rolls"
          }
        }
      },
      "cost": 20
    },
    "specific_target": {
      "name": "Specific Target",
      "description": "One enemy unit becomes a priority target that this faction's units fight better.",
      "pattern": "{when} becomes a priority target. Units {effect} against it.",
      "slots": {
        "when": {
          "type": "enum",
          "options": {
            "select": "At the start of the game, an enemy unit of your choice",
            "first_ooa": "The first enemy to take one of your units Out of Action"
          }
        },
        "effect": {
          "type": "enum",
          "options": {
            "hit_bonus": "gain +1 to hit",
            "reroll_hits": "reroll failed hits once per attack"
          }
        }
      },
      "cost": 15
    },
    "loot_fallen": {
      "name": "Loot the Fallen",
      "description": "When a unit takes an enemy Out of Action in melee, it may immediately make one free attack with that enemy's weapon.",
      "pattern": "When a unit takes an enemy Out of Action in melee, it may immediately make one free attack with that enemy's weapon.",
      "slots": {},
      "cost": 15
    },
    "random_attribute_on_knockdown": {
      "name": "Adaptive Mutation",
      "description": "When Knocked Down, roll a D6; the unit has the matching attribute for the activation in which it stands up.",
      "pattern": "When Knocked Down, roll a D6. When the unit stands up it has the matching attribute for that activation: 1 {neg1}, 2 {neg2}, 3 {neg3}, 4 {pos1}, 5 {pos2}, 6 {pos3}.",
      "slots": {
        "neg1": {
          "type": "attribute",
          "sign": "negative"
        },
        "neg2": {
          "type": "attribute",
          "sign": "negative"
        },
        "neg3": {
          "type": "attribute",
          "sign": "negative"
        },
        "pos1": {
          "type": "attribute",
          "sign": "positive"
        },
        "pos2": {
          "type": "attribute",
          "sign": "positive"
        },
        "pos3": {
          "type": "attribute",
          "sign": "positive"
        }
      },
      "cost": 10
    },
    "one_round_event": {
      "name": "One-Round Disadvantage Event",
      "description": "Once per game, trigger a warband-wide event for one round.",
      "pattern": "Once per game, trigger a {eventname} event: {event}.",
      "slots": {
        "eventname": {
          "type": "text",
          "default": "warband-wide",
          "placeholder": "event name"
        },
        "event": {
          "type": "enum",
          "options": {
            "no_move": "enemy units may not move unless they pass a Skill check",
            "shock": "enemy units suffer -1 to all Skill checks",
            "short_range": "enemy units cannot make ranged attacks beyond short range this round"
          }
        }
      },
      "cost": 20
    },
    "recover_from_knockdown": {
      "name": "Quick Recovery",
      "description": "When Knocked Down, roll a D6; on a 5+ the unit stands up at once instead of on its next activation.",
      "pattern": "When Knocked Down, roll a D6; on a 5+ the unit stands up at once instead of on its next activation.",
      "slots": {},
      "cost": 15
    }
  },
  "trait_conditions": {
    "attacking_attr": {
      "name": "Attacking a target with an attribute",
      "template": "while attacking a target with {attribute}",
      "slots": {
        "attribute": {
          "type": "attribute"
        }
      },
      "cost": "c*0.75"
    },
    "near_friendly_attr": {
      "name": "Near a friendly unit with an attribute",
      "template": "while within {range} of a friendly unit with {attribute}",
      "slots": {
        "range": {
          "type": "distance",
          "min": 1,
          "max": 6,
          "default": 3
        },
        "attribute": {
          "type": "attribute"
        }
      },
      "cost": "c*(x/6)"
    },
    "when_charged": {
      "name": "When charged",
      "template": "when charged",
      "cost": "c/2"
    },
    "while_charging": {
      "name": "While charging",
      "template": "while charging",
      "cost": "c/2"
    },
    "on_ooa": {
      "name": "When a unit is taken Out of Action",
      "template": "when {who} is taken Out of Action",
      "slots": {
        "who": {
          "type": "enum",
          "options": {
            "any": "any unit",
            "friendly": "a friendly unit",
            "enemy": "an enemy unit"
          }
        }
      },
      "cost": "c/2"
    },
    "one_round": {
      "name": "For one round per game",
      "template": "for one round per game",
      "cost": "c/3"
    }
  },
  "trait_buffs": {
    "attack": {
      "name": "+1A",
      "template": "+1A",
      "cost": 30
    },
    "skill": {
      "name": "+1 on Skill checks",
      "template": "+1 on Skill checks",
      "cost": 20
    },
    "defence": {
      "name": "+1 on Defence checks",
      "template": "+1 on Defence checks",
      "cost": 20
    },
    "reroll": {
      "name": "One reroll",
      "template": "one reroll",
      "cost": 20
    },
    "gain_attr": {
      "name": "An attribute",
      "template": "the {attribute} attribute",
      "slots": {
        "attribute": {
          "type": "attribute",
          "valued": true
        }
      },
      "cost": "attrCost"
    }
  },
  "unit_attributes": {
    "acrobatic": {
      "name": "Acrobatic",
      "description": "+1 to climb and jump rolls, and ignores the effects of falling.",
      "cost": 8
    },
    "ambush": {
      "name": "Ambush",
      "description": "Once per game, deploy anywhere at the start of any activation.",
      "cost": 10
    },
    "retaliation": {
      "name": "Retaliation",
      "description": "An enemy that injures this unit in melee suffers 1 hit back, even if this unit goes Out of Action.",
      "cost": 5
    },
    "berserker": {
      "name": "Berserker",
      "description": "Gains +1A in the activation in which it stands up from Knocked Down.",
      "cost": 3
    },
    "bodyguard": {
      "name": "Bodyguard",
      "description": "When a friendly unit within 2\" suffers a hit, this unit may take that hit instead.",
      "cost": 8
    },
    "braced": {
      "name": "Braced",
      "description": "Enemies suffer -1 to hit when charging this unit.",
      "cost": 5
    },
    "erratic": {
      "name": "Erratic",
      "description": "Unless in melee, must pass a Skill check or move D6″ in a random direction first.",
      "cost": -5
    },
    "disruptive": {
      "name": "Disruptive",
      "param": {
        "kind": "number"
      },
      "description": "Enemies within x\" suffer -1 to difficulty checks.",
      "cost": "2*x",
      "min": 1,
      "max": 12,
      "stacking": true
    },
    "fear": {
      "name": "Fear",
      "description": "Enemies must pass a Skill check to engage this unit in melee, or do nothing that activation.",
      "cost": 15
    },
    "fearless": {
      "name": "Fearless",
      "description": "Gains +1 to morale checks and Skill checks caused by Fear.",
      "cost": 5
    },
    "flying": {
      "name": "Flying",
      "description": "Ignores terrain when moving but must start and end on a surface.",
      "cost": 15
    },
    "furious": {
      "name": "Furious",
      "description": "Gains +1A when charging.",
      "cost": 5
    },
    "hero": {
      "name": "Hero",
      "description": "Friendly units within 6\" gain +1 to morale checks and Skill checks caused by Fear.",
      "cost": 5
    },
    "inspiring": {
      "name": "Inspiring",
      "description": "Friendly units within 6\" gain +1 to hit in melee.",
      "cost": 12
    },
    "hit_and_run": {
      "name": "Hit and Run",
      "description": "After a melee attack, move 2\" away without granting free attacks.",
      "cost": 10
    },
    "immovable": {
      "name": "Immovable",
      "description": "Cannot be Pushed or Pulled and is never moved by another unit's effect.",
      "cost": 5
    },
    "impervious": {
      "name": "Impervious",
      "description": "Enemy difficulty checks for special actions targeting this unit suffer -1.",
      "cost": 8
    },
    "large": {
      "name": "Large",
      "description": "Enemies gain +1 to hit against this unit. Push/Pull distances and their damage are halved.",
      "cost": -5
    },
    "light_footed": {
      "name": "Light-footed",
      "description": "Ignores difficult terrain penalties.",
      "cost": 5
    },
    "healing": {
      "name": "Healing",
      "description": "Friendly units within 6\" gain +1 to injury rolls.",
      "cost": 10
    },
    "menacing": {
      "name": "Menacing",
      "description": "Enemies that can attack this unit must target it. Units with Tunnel Vision ignore this.",
      "cost": -10
    },
    "evasive": {
      "name": "Evasive",
      "description": "May leave melee without granting free attacks.",
      "cost": 10
    },
    "overrun": {
      "name": "Overrun",
      "description": "When it Runs or Charges, it may pass through enemy units, dealing 1 hit to each fully crossed.",
      "cost": 10
    },
    "protective": {
      "name": "Protective",
      "description": "Friendly units in base contact gain +1 to Defence checks.",
      "cost": 12
    },
    "absorb": {
      "name": "Absorb",
      "param": {
        "kind": "number",
        "display": "target"
      },
      "description": "When this unit is hit, roll a D6; on x+ the hit is ignored.",
      "cost": "8*(7-x)",
      "min": 2,
      "max": 6
    },
    "resistant": {
      "name": "Resistant",
      "param": {
        "kind": "type",
        "options": [
          "Melee",
          "Ranged"
        ]
      },
      "description": "+1 to Defence checks against the chosen attack type (Melee or Ranged).",
      "cost": 6
    },
    "scout": {
      "name": "Scout",
      "description": "Deploy outside LoS and 8\"+ from enemies at game start.",
      "cost": 10
    },
    "small": {
      "name": "Small",
      "description": "Enemies suffer -1 to hit against this unit. Push/Pull distances and their damage are doubled.",
      "cost": 8
    },
    "special": {
      "name": "Special",
      "param": {
        "kind": "list"
      },
      "description": "May attempt special actions from its list (see Special Action).",
      "cost": 15
    },
    "speed": {
      "name": "Speed",
      "param": {
        "kind": "number",
        "signed": true
      },
      "description": "Base movement +x″. A negative value is slower: Speed(−1) has 1″ less base movement.",
      "cost": "5*x",
      "min": -4,
      "max": 5,
      "stacking": true,
      "default": 1
    },
    "marksman": {
      "name": "Marksman",
      "description": "Suffers no long range or cover penalty to ranged attacks.",
      "cost": 12
    },
    "stealth": {
      "name": "Stealth",
      "description": "Enemies suffer -1 to hit against this unit with ranged attacks.",
      "cost": 5
    },
    "unseen": {
      "name": "Unseen",
      "description": "Cannot be targeted from further away than 10\".",
      "cost": 35
    },
    "stupid": {
      "name": "Stupid",
      "description": "Must pass a Skill check at the start of its activation to act; it still saves as normal if it fails.",
      "cost": -10
    },
    "tough": {
      "name": "Tough",
      "param": {
        "kind": "number"
      },
      "description": "Adds x to the injury roll.",
      "cost": "8*x",
      "min": 1,
      "max": 3,
      "stacking": true
    },
    "unbreakable": {
      "name": "Unbreakable",
      "description": "Ignores all morale checks and Skill checks caused by Fear.",
      "cost": 7
    },
    "unstable": {
      "name": "Unstable",
      "param": {
        "kind": "number"
      },
      "description": "If this unit is taken Out of Action it explodes on a 4+: all units within x\" suffer 1 hit.",
      "cost": "-3*x",
      "min": 1,
      "max": 6,
      "stacking": true
    },
    "vulnerable": {
      "name": "Vulnerable",
      "param": {
        "kind": "type",
        "options": [
          "Melee",
          "Ranged"
        ]
      },
      "description": "-1 to Defence checks against the chosen attack type (Melee or Ranged).",
      "cost": -6
    },
    "grounded": {
      "name": "Grounded",
      "description": "Cannot climb or use ladders.",
      "cost": -5
    },
    "reckless": {
      "name": "Reckless",
      "description": "Must charge whenever able.",
      "cost": -8
    },
    "cowardly": {
      "name": "Cowardly",
      "description": "Suffers -1 to all morale checks and Skill checks caused by Fear.",
      "cost": -5
    },
    "pack": {
      "name": "Pack",
      "description": "Suffers -1 to morale checks and Skill checks caused by Fear while no friendly unit is within 6\".",
      "cost": -3
    },
    "lumbering": {
      "name": "Lumbering",
      "description": "Cannot Run; may only Walk or Charge.",
      "cost": -8
    },
    "fixed": {
      "name": "Fixed",
      "description": "Cannot move. It may still act.",
      "cost": -15
    },
    "exposed": {
      "name": "Exposed",
      "description": "Enemies gain +1 to hit against this unit with ranged attacks.",
      "cost": -5
    },
    "territorial": {
      "name": "Territorial",
      "description": "Cannot voluntarily move away from an enemy within 6\".",
      "cost": -5
    },
    "tunnel_vision": {
      "name": "Tunnel Vision",
      "description": "May only target the nearest visible enemy.",
      "cost": -8
    },
    "doomed": {
      "name": "Doomed",
      "description": "Suffers -1 to all injury rolls.",
      "cost": -8
    },
    "undisciplined": {
      "name": "Undisciplined",
      "description": "Activates before any friendly unit without this attribute. If several have it, roll off for their order.",
      "cost": -8
    }
  },
  "weapon_attributes": {
    "area": {
      "name": "Area",
      "param": {
        "kind": "number"
      },
      "description": "Ranged only. All units within x\" of the original target are also hit (max x=5).",
      "cost": "12*x",
      "min": 1,
      "max": 5
    },
    "deadly": {
      "name": "Deadly",
      "description": "On a successful attack, the target suffers 1 additional hit.",
      "cost": 15
    },
    "brutal": {
      "name": "Brutal",
      "description": "This weapon causes a Critical Hit on a natural 5 or 6.",
      "cost": 10
    },
    "bulky": {
      "name": "Bulky",
      "description": "The bearer suffers -1″ base movement while carrying this weapon.",
      "cost": -3
    },
    "ignore_armor": {
      "name": "Ignore Armor",
      "description": "This weapon ignores the target's armor bonus.",
      "cost": 10
    },
    "push": {
      "name": "Push",
      "param": {
        "kind": "number"
      },
      "description": "On hit, push the target x\" directly away. If a unit or terrain blocks the path, roll a D6: on a 4+ the target and the blocker each suffer x hits.",
      "cost": "5*x",
      "min": 1,
      "max": 6
    },
    "pull": {
      "name": "Pull",
      "param": {
        "kind": "number"
      },
      "description": "On hit, pull the target x\" toward the attacker. If a unit or terrain blocks the path, roll a D6: on a 4+ the target and the blocker each suffer x hits.",
      "cost": "5*x",
      "min": 1,
      "max": 6
    },
    "grievous": {
      "name": "Grievous",
      "description": "Injury rolls caused by this weapon suffer -1.",
      "cost": 8
    },
    "line": {
      "name": "Line",
      "param": {
        "kind": "number"
      },
      "description": "Ranged only. Fires a straight line of width x\" (max 5\"): all units in LoS along the line are hit. Walls and solid cover block the effect.",
      "cost": "10*x",
      "min": 1,
      "max": 5
    },
    "piercing": {
      "name": "Piercing",
      "param": {
        "kind": "number"
      },
      "description": "The target suffers -x to Defence checks against this attack.",
      "cost": "10*x",
      "min": 1,
      "max": 3
    },
    "parry": {
      "name": "Parry",
      "description": "In melee this unit gains +1 on Defence checks.",
      "cost": 5
    },
    "precise": {
      "name": "Precise",
      "description": "Attacks with this weapon gain +1 to hit.",
      "cost": 5
    },
    "reliable": {
      "name": "Reliable",
      "description": "Attacks with this weapon may reroll one miss when rolling to hit.",
      "cost": 5
    },
    "rapid": {
      "name": "Rapid",
      "description": "This weapon gains +1A, but suffers -1 to hit. Only for weapons with up to 3A.",
      "cost": 8
    },
    "shock": {
      "name": "Shock",
      "description": "On hit, the target suffers -1 to all Skill checks until the end of the round.",
      "cost": 5
    },
    "stun": {
      "name": "Stun",
      "description": "Instead of rolling for injury, an unsaved hit Knocks Down the target.",
      "cost": 8
    },
    "unreliable": {
      "name": "Unreliable",
      "description": "Roll a D6 before using this weapon: it only activates on a 4+.",
      "cost": -10
    },
    "volatile": {
      "name": "Volatile",
      "description": "For each natural 1 rolled to hit, the bearer suffers 1 hit. Each natural 6 causes a Critical Hit, even if the unit normally cannot cause Critical Hits.",
      "cost": -5
    },
    "scatter": {
      "name": "Scatter",
      "description": "Ranged only. If the shot misses, a random unit within 3\" of the target is hit instead.",
      "cost": 5
    },
    "ricochet": {
      "name": "Ricochet",
      "description": "Ranged only. On hit, roll a D6: on a 4+ the closest unit not yet hit is also hit.",
      "cost": 10
    },
    "split_attacks": {
      "name": "Split Attacks",
      "description": "This weapon's attacks may be distributed across multiple targets. Declare all targets before rolling.",
      "cost": 10
    },
    "short_range": {
      "name": "Short Range",
      "description": "Ranged only. Attacks at long range suffer an additional -1 to hit.",
      "cost": -6
    },
    "recoil": {
      "name": "Recoil",
      "description": "After attacking, the bearer is pushed 2\" in the opposite direction from the target.",
      "cost": -5
    },
    "minimum_range": {
      "name": "Minimum Range",
      "description": "Ranged only. This weapon cannot target units within 6\".",
      "cost": -8
    },
    "tiring": {
      "name": "Tiring",
      "description": "The bearer may not move in an activation in which it attacks with this weapon.",
      "cost": -5
    },
    "conspicuous": {
      "name": "Conspicuous",
      "description": "After use, enemies gain +1 to hit against the bearer until the end of the round.",
      "cost": -5
    },
    "unspectacular": {
      "name": "Unspectacular",
      "description": "This weapon cannot cause Critical Hits.",
      "cost": -3
    },
    "unpredictable": {
      "name": "Unpredictable",
      "description": "On a 1 this weapon hits a random participant in the melee or fires in a random direction. If any unit is in that direction it is automatically hit.",
      "cost": -5
    }
  },
  "armor": {
    "armor": {
      "name": "Armor",
      "description": "+1 Defence, -1″ base movement.",
      "cost": 10
    }
  },
  "weapon_limitations": {
    "limited": {
      "name": "Limited",
      "description": "Can be used only once per game.",
      "cost": "c*3/5"
    },
    "crew": {
      "name": "Crew",
      "param": {
        "kind": "number"
      },
      "description": "Requires x friendly units (2-3) in base contact to operate. Firing it counts as the activation of every crew member this round.",
      "cost": "c/x",
      "min": 2,
      "max": 3
    },
    "reload": {
      "name": "Reload",
      "description": "After firing, this weapon cannot be fired again in the next round.",
      "cost": "c/2"
    }
  },
  "weapon_types": [
    "Melee",
    "Ranged"
  ],
  "archetypes": {
    "cohort": {
      "name": "Company",
      "unitcount_min": 4,
      "unitcount_max": 10,
      "unit_stats": "max. Skill 4+, Defence 4+ (up to 2 may have Skill and/or Defence at 3+)",
      "stat_constraint": {
        "skill_max": "4+",
        "defence_max": "4+",
        "exceptions": 2,
        "exception_max": "3+"
      },
      "special_rules": {
        "coordinated_strike": {
          "name": "Coordinated Strike",
          "description": "Units gain +1A while another friendly unit is in melee with the target"
        },
        "versatile_tactics": {
          "name": "Versatile Tactics",
          "description": "Once per round, one unit may reroll any dice of one failed to hit roll or Defence check."
        }
      }
    },
    "elite": {
      "name": "Elite",
      "unitcount_min": 2,
      "unitcount_max": 4,
      "unit_stats": "at least one (Skill or Defence) must be 3+ or better",
      "stat_constraint": {
        "one_of_min": "3+"
      },
      "special_rules": {
        "relentless_assault": {
          "name": "Relentless Assault",
          "description": "Once per game, a unit may ignore the effect of a Critical Hit."
        },
        "unbreakable_resolve": {
          "name": "Unbreakable Resolve",
          "description": "All units may reroll failed morale checks."
        }
      }
    },
    "horde": {
      "name": "Mob",
      "unitcount_min": 8,
      "unitcount_max": 20,
      "unit_stats": "Skill & Defence 5+ or worse (one unit may have Skill and/or Defence at 3+)",
      "stat_constraint": {
        "skill_max": "5+",
        "defence_max": "5+",
        "exceptions": 1,
        "exception_max": "3+"
      },
      "special_rules": {
        "strength_in_numbers": {
          "name": "Strength in Numbers",
          "description": "Units gain Unbreakable within 3\" of at least two friendly units.",
          "refs": [
            "unbreakable"
          ]
        },
        "endless_tide": {
          "name": "Endless Tide",
          "description": "Once per game, when the warband has lost half its units, return D6 units taken Out of Action within 3\" of the leader (the highest-costing unit)."
        }
      }
    }
  },
  "effects": {
    "dice_reroll_x_dice": {
      "name": "Reroll X Dice",
      "description": "Reroll x of your own dice, or force an enemy in LoS to reroll x dice.",
      "template": "{option}",
      "options": {
        "own": {
          "text": "reroll {x} dice"
        },
        "enemy": {
          "text": "force {target} to reroll {x} dice",
          "target": {
            "who": "enemy",
            "reach": "line_of_sight"
          }
        }
      },
      "cost": "x*20",
      "min": 1,
      "max": 5
    },
    "dice_reroll_advantage_disadvantage": {
      "name": "Advantage/Disadvantage",
      "description": "Reroll keeping the higher result, or force an enemy in LoS to keep the lower result.",
      "template": "{option}",
      "options": {
        "advantage": {
          "text": "reroll keeping the higher result"
        },
        "disadvantage": {
          "text": "force {target} to keep the lower result",
          "target": {
            "who": "enemy",
            "reach": "line_of_sight"
          }
        }
      },
      "cost": 25
    },
    "dice_reroll_failed_friendly": {
      "name": "Reroll Failed (Friendly)",
      "description": "A friendly unit in LoS may reroll x failed dice.",
      "template": "{target} may reroll {x} failed dice",
      "target": {
        "who": "friendly",
        "reach": "line_of_sight"
      },
      "cost": "x*20",
      "min": 1,
      "max": 5
    },
    "token_interrupt": {
      "name": "Interrupt",
      "description": "When an enemy token is drawn and this unit has not acted this round, return it to the bag and pick one of your tokens from the bag instead; this unit activates now.",
      "template": "when an enemy token is drawn and this unit has not acted this round, you may return it to the bag and pick one of your tokens from the bag instead; this unit activates now",
      "cost": 30
    },
    "token_delay": {
      "name": "Delay",
      "description": "When one of your tokens is drawn, keep it; announce and resolve it directly after any later activation this round.",
      "template": "when one of your tokens is drawn, you may keep it; announce and resolve it directly after any later activation this round",
      "cost": 20
    },
    "token_deny": {
      "name": "Deny Activation",
      "description": "Remove one enemy token from the bag this round.",
      "template": "remove one enemy token from the bag this round",
      "cost": 60
    },
    "token_extra_activation": {
      "name": "Extra Activation",
      "description": "This unit may activate a second time at the end of this round.",
      "template": "this unit may activate a second time at the end of this round",
      "cost": 60
    },
    "movement_swap_positions": {
      "name": "Swap Positions",
      "description": "Swap positions with a friendly unit within x\".",
      "template": "swap positions with a friendly unit within {x}\"",
      "cost": "20+x",
      "min": 1,
      "max": 12
    },
    "movement_extra_move": {
      "name": "Additional Movement",
      "description": "This unit gains an additional move after its normal action.",
      "template": "this unit gains an additional move after its normal action",
      "cost": 40
    },
    "movement_force_move": {
      "name": "Force Move Enemy (x\")",
      "description": "An enemy in LoS must pass a Skill check or is moved x\" in a direction of your choice (not into base contact).",
      "template": "{target} must pass a Skill check or is moved {x}\" in a direction of your choice (not into base contact)",
      "target": {
        "who": "enemy",
        "reach": "line_of_sight"
      },
      "cost": "4*x",
      "min": 1,
      "max": 6
    },
    "status_enemy_out_of_action": {
      "name": "Enemy Out of Action",
      "description": "An enemy in base contact must pass a Skill check or is taken Out of Action.",
      "template": "{target} must pass a Skill check or be taken Out of Action",
      "target": {
        "who": "enemy",
        "reach": "contact"
      },
      "cost": 44
    },
    "status_enemy_shaken": {
      "name": "Shaken",
      "description": "An enemy in base contact must pass a Skill check or suffers -1 to all Skill checks until the end of the round.",
      "template": "{target} must pass a Skill check or suffers -1 to all Skill checks until the end of the round",
      "target": {
        "who": "enemy",
        "reach": "contact"
      },
      "cost": 10
    },
    "status_enemy_stun": {
      "name": "Stun",
      "description": "An enemy in base contact must pass a Skill check or is Knocked Down.",
      "template": "{target} must pass a Skill check or is Knocked Down",
      "target": {
        "who": "enemy",
        "reach": "contact"
      },
      "cost": 16
    },
    "status_enemy_hits": {
      "name": "Inflict Hits",
      "description": "An enemy in base contact suffers 1 automatic hit, saved as normal.",
      "template": "{target} suffers 1 automatic hit (saved as normal)",
      "target": {
        "who": "enemy",
        "reach": "contact"
      },
      "cost": 20
    },
    "status_attack_die_mod": {
      "name": "Modify Attack Dice",
      "description": "Add 1A to itself or a friendly unit in LoS, or remove 1A from an enemy in base contact or in LoS, until the end of the round.",
      "template": "{option} until the end of the round",
      "options": {
        "self": {
          "text": "add 1A to {target}",
          "target": {
            "who": "self"
          }
        },
        "ally": {
          "text": "add 1A to {target}",
          "target": {
            "who": "friendly",
            "reach": "line_of_sight"
          }
        },
        "enemy": {
          "text": "remove 1A from {target}",
          "target": {
            "who": "enemy",
            "reach": "contact"
          }
        },
        "enemy_los": {
          "text": "remove 1A from {target}",
          "target": {
            "who": "enemy",
            "reach": "line_of_sight"
          }
        }
      },
      "cost": 30
    },
    "status_skill_defence_mod": {
      "name": "Modify Skill or Defence",
      "description": "Give a friendly unit in LoS +1 to Skill or Defence, or an enemy in LoS -1, until the end of the round.",
      "template": "{option} until the end of the round",
      "options": {
        "skill_up": {
          "text": "give {target} +1 to Skill",
          "target": {
            "who": "friendly",
            "reach": "line_of_sight"
          }
        },
        "defence_up": {
          "text": "give {target} +1 to Defence",
          "target": {
            "who": "friendly",
            "reach": "line_of_sight"
          }
        },
        "skill_down": {
          "text": "give {target} -1 to Skill",
          "target": {
            "who": "enemy",
            "reach": "line_of_sight"
          }
        },
        "defence_down": {
          "text": "give {target} -1 to Defence",
          "target": {
            "who": "enemy",
            "reach": "line_of_sight"
          }
        }
      },
      "cost": 20
    },
    "status_gain_attribute": {
      "name": "Gain Attribute",
      "description": "This unit or one of its weapons gains an attribute; pay the listed attribute cost (see Granted Attributes).",
      "template": "{what} gains {attribute}{change}",
      "target": {
        "who": "self"
      },
      "cost": "attrCost"
    },
    "status_assign_attribute": {
      "name": "Assign Attribute",
      "description": "A friendly unit in LoS or an enemy in base contact gains a chosen unit attribute until the end of the round; pay the listed attribute cost.",
      "template": "{target} gains {attribute} until the end of the round",
      "options": {
        "friendly": {
          "text": "{target}",
          "target": {
            "who": "friendly",
            "reach": "line_of_sight"
          }
        },
        "enemy": {
          "text": "{target}",
          "target": {
            "who": "enemy",
            "reach": "contact"
          }
        }
      },
      "cost": "attrCost"
    },
    "status_prevent_special": {
      "name": "Prevent Special Actions",
      "description": "An enemy in base contact cannot perform special actions until the end of the round.",
      "template": "{target} cannot perform special actions until the end of the round",
      "target": {
        "who": "enemy",
        "reach": "contact"
      },
      "cost": 15
    },
    "status_enemy_penalty": {
      "name": "Inflict Penalty",
      "description": "An enemy in base contact suffers a chosen -1 penalty until the end of the round.",
      "template": "{target} {option} until the end of the round",
      "target": {
        "who": "enemy",
        "reach": "contact"
      },
      "options": {
        "to_hit": "suffers -1 to hit",
        "morale": "suffers -1 to morale checks and Skill checks caused by Fear",
        "climb": "suffers -1 to climb and jump checks",
        "defence": "suffers -1 to Defence checks"
      },
      "cost": 20
    },
    "status_mark_target": {
      "name": "Mark Target",
      "description": "Mark an enemy in LoS: friendly units gain +1 to hit against it until the end of the round.",
      "template": "mark {target}: friendly units gain +1 to hit against it until the end of the round",
      "target": {
        "who": "enemy",
        "reach": "line_of_sight"
      },
      "cost": 25
    },
    "status_enemy_panic": {
      "name": "Cause Panic",
      "description": "An enemy in LoS must pass a Skill check or immediately moves its full base movement directly away from this unit.",
      "template": "{target} must pass a Skill check or immediately moves its full base movement directly away from this unit",
      "target": {
        "who": "enemy",
        "reach": "line_of_sight"
      },
      "cost": 20
    },
    "status_enemy_taunt": {
      "name": "Taunt",
      "description": "An enemy in LoS must pass a Skill check or must charge or attack this unit when it activates this round, if able.",
      "template": "{target} must pass a Skill check or must charge or attack this unit when it activates this round, if able",
      "target": {
        "who": "enemy",
        "reach": "line_of_sight"
      },
      "cost": 15
    },
    "status_enemy_root": {
      "name": "Root",
      "description": "An enemy in LoS must pass a Skill check or cannot move until the end of the round (it may still attack).",
      "template": "{target} must pass a Skill check or cannot move until the end of the round (it may still attack)",
      "target": {
        "who": "enemy",
        "reach": "line_of_sight"
      },
      "cost": 18
    },
    "status_enemy_disarm": {
      "name": "Disarm",
      "description": "An enemy in base contact must pass a Skill check or cannot use one weapon of your choice until the end of the round.",
      "template": "{target} must pass a Skill check or cannot use one weapon of your choice until the end of the round",
      "target": {
        "who": "enemy",
        "reach": "contact"
      },
      "cost": 25
    },
    "create_new_unit": {
      "name": "Spawn Unit(s)",
      "description": "Spawn x units within 3\" of this unit. They cannot have upgrades or the Special attribute. They act immediately and vanish at the end of the round.",
      "template": "spawn {x}× {spawn} within 3\" of this unit (they act at once and vanish at the end of the round)",
      "cost_note": "x &times; spawned<br> unit cost",
      "special": "spawn"
    },
    "create_obstacle": {
      "name": "Create Obstacle",
      "description": "Create a temporary obstacle within 1\" that is removed at the end of the round. Choose solid (blocks movement and LoS) or visual-only (blocks only LoS). Cost depends on size (width &times; height).",
      "template": "create a {width}×{height}\" {option} obstacle within 1\"; it is removed at the end of the round",
      "options": {
        "solid": {
          "text": "solid"
        },
        "visual": {
          "text": "visual-only (does not block movement)"
        }
      },
      "cost_note": "width &times;<br> height &times; 10",
      "per_sq": 10,
      "special": "obstacle"
    },
    "create_attack": {
      "name": "Create Weapon/Attack",
      "description": "Add a weapon or special attack, made in addition to the normal action. Cost is the weapon's full value plus a flat surcharge for the extra attack. Add +No LoS to attack without LoS.",
      "template": "make an attack: {attack}",
      "cost_note": "= weapon cost + 1 + 10",
      "no_los_cost": 20,
      "extra_action_cost": 10,
      "special": "attack"
    },
    "create_smoke": {
      "name": "Smoke Cloud (x\")",
      "description": "Create a smoke cloud with x\" radius centred on a point in LoS within 6\". It blocks LoS (but not movement) until the end of the round.",
      "template": "create a smoke cloud with {x}\" radius centred on a point in LoS within 6\"; it blocks LoS (but not movement) until the end of the round",
      "cost": "6*x",
      "min": 1,
      "max": 4
    },
    "status_enemy_switch_sides": {
      "name": "Switch Sides",
      "description": "An enemy in base contact must pass a Skill check or fights for your warband until the end of the round.",
      "template": "{target} must pass a Skill check or fights for your warband until the end of the round",
      "target": {
        "who": "enemy",
        "reach": "contact"
      },
      "cost": 60
    },
    "status_stand_up": {
      "name": "Stand Up",
      "description": "A Knocked Down friendly unit in LoS immediately stands up.",
      "template": "{target} immediately stands up if Knocked Down",
      "target": {
        "who": "friendly",
        "reach": "line_of_sight"
      },
      "cost": 11
    },
    "status_return_oa_unit": {
      "name": "Recover",
      "description": "Return one friendly unit taken Out of Action this round to the table within 3\" of this unit. It returns Knocked Down.",
      "template": "return one friendly unit taken Out of Action this round within 3\" of this unit, Knocked Down",
      "cost": 50
    },
    "movement_grant_friendly_move": {
      "name": "Grant Friendly Move",
      "description": "A friendly unit in LoS may immediately Walk.",
      "template": "{target} may immediately Walk",
      "target": {
        "who": "friendly",
        "reach": "line_of_sight"
      },
      "cost": 10
    }
  },
  "conditions": {
    "condition_threshold_dice": {
      "name": "Dice Threshold",
      "description": "Roll D6: effect works on x+ (x: 2-6).",
      "template": "on a D6 roll of {x}+",
      "cost": "c*((7-x)/6)",
      "min": 2,
      "max": 6,
      "default": 4
    },
    "condition_trigger_enemy_out_of_action": {
      "name": "On Enemy Out of Action",
      "description": "Triggers when this unit takes an enemy Out of Action.",
      "template": "after taking an enemy Out of Action",
      "cost": "c/2"
    },
    "condition_trigger_self_hit": {
      "name": "Self Damage",
      "description": "Unit suffers 1 automatic hit to activate.",
      "template": "if the unit takes 1 automatic hit",
      "cost": "c/2"
    },
    "condition_when_charged": {
      "name": "When Charged",
      "description": "Triggers only when this unit is charged.",
      "template": "when this unit is charged",
      "cost": "c/2"
    },
    "condition_limitation_once": {
      "name": "Once per Game",
      "description": "Effect can be used only once per game.",
      "template": "once per game",
      "cost": "c/4"
    },
    "condition_trigger_out_of_action": {
      "name": "On Out of Action",
      "description": "Triggers only when this unit is taken Out of Action.",
      "template": "when this unit is taken Out of Action",
      "cost": "c/3"
    },
    "condition_in_cover": {
      "name": "Requires Cover",
      "description": "Unit must be in cover.",
      "template": "while in cover",
      "cost": "c*0.75"
    },
    "condition_near_friendly": {
      "name": "Near Friendly Unit (x\")",
      "description": "Valid only while within x\" of at least one friendly unit (x ≤ 6).",
      "template": "while within {x}\" of a friendly unit",
      "cost": "c*(x/6)",
      "min": 1,
      "max": 6,
      "default": 3
    },
    "condition_while_charging": {
      "name": "While Charging",
      "description": "Triggers when this unit charges.",
      "template": "when charging",
      "cost": "c/2"
    },
    "condition_unit_within": {
      "name": "Unit Within (x\")",
      "description": "Requires a friendly unit or an enemy within x\" (x ≤ 6).",
      "template": "while a unit is within {x}\"",
      "cost": "c*(x/6)",
      "min": 1,
      "max": 6,
      "default": 3
    },
    "condition_higher_ground": {
      "name": "Higher Ground",
      "description": "Higher than the target.",
      "template": "while higher than the target",
      "cost": "c/2"
    },
    "condition_first_round_only": {
      "name": "First Round Only",
      "description": "First round only.",
      "template": "in the first round only",
      "cost": "c/2"
    },
    "condition_lose_next_activation": {
      "name": "Lose Activation",
      "description": "Unit performs no action next round.",
      "template": "if the unit performs no action next round",
      "cost": "c/3"
    },
    "condition_only_specific_unit": {
      "name": "Specific Target Only",
      "description": "Only valid against a specific unit.",
      "template": "against one chosen target only",
      "cost": "c/4"
    }
  },
  "area_of_effect": {
    "name": "Area of Effect",
    "description": "Turns a single-target effect into an area: the target becomes every unit within x\" of it. Contact effects centre the area on this unit; line-of-sight effects centre it on a target you can see. Cost is the effect cost times the radius x plus a flat point, so even the smallest 1\" area costs more than the single-target version; applied before any condition.",
    "cost": "c*x+1",
    "all_factions_multiplier": 0.8
  }
}
