guidokessels / xwing-data

An easy-to-use collection of data and images from X-Wing: The Miniatures Game by Fantasy Flight Games.
93 stars 37 forks source link

Maul/Ezra crew exception #158

Open urbknu opened 6 years ago

urbknu commented 6 years ago

Need a mechanism for handling the Ezra Maul (Scum) crew exception. In addition, a scope is required as the Maul card states that the restriction can be ignored if your squad contains 'Ezra Bridger'. In the future such exceptions could be limited to the pilot scope.

Maul restriction: "Scum only. Ignore this restriction if your squad contains 'Ezra Bridger'"

Possible solution to extend 'grants', already used on pilots and upgrades, to include 'type':'upgrade', 'id':, and 'scope':'squad'/'pilot' (perhaps implicit if not squad)?

example on Ezra Crew

  {
    "image": "upgrades/Crew/ezra-bridger.png",
    "text": "When attacking, if you are stressed, you may change 1 of your [Focus] results to a [Critical Hit] result.",
    "name": "Ezra Bridger",
    "unique": true,
    "points": 3,
    "slot": "Crew",
    "faction": "Rebel Alliance",
    "id": 215,
    "xws": "ezrabridger",
    "grants": [
        {
        "type":"upgrade",
        "id": 343, 
        "scope":"squad"
        }
    ]
  },

example on Ezra Pilot

{
    "image": "pilots/Rebel Alliance/Sheathipede-class Shuttle/ezra-bridger.png",
    "text": "When defending, if you are stressed, you may change up to 2 of your [Focus] results to [Evade] results.",
    "name": "Ezra Bridger",
    "xws": "ezrabridger",
    "ship": "Sheathipede-class Shuttle",
    "unique": true,
    "skill": 5,
    "points": 17,
    "faction": "Rebel Alliance",
    "slots": [
      "Astromech",
      "Crew",
      "Elite"
    ],
    "id": 275,
    "grants": [
        {
        "type":"upgrade",
        "id": 343, 
        "scope":"squad"
        }
    ]
  },
urbknu commented 6 years ago

@guidokessels is this something that would work for you? I can happily make the changes, but request your input and approval