geordanr / xwing

Squad builder for the First Edition X-Wing Miniatures game by Fantasy Flight Games.
http://geordanr.github.io/xwing
MIT License
97 stars 154 forks source link

Auto-add title? #540

Open evanger opened 6 years ago

evanger commented 6 years ago

This is a question, not a feature request. Not sure where I can post such a thing.

Using this example from the "Mist Hunter" title, I am looking for a way to modify a pilot card to make it take a specific title card.

confersAddons: [ { type: exportObj.RestrictedUpgrade slot: "Cannon" filter_func: (upgrade) -> upgrade.english_name == 'Tractor Beam' auto_equip: 144 }

I would like something like this:

confersAddons: [ { type: exportObj.RestrictedTitle slot: "Title" filter_func: (upgrade) -> upgrade.english_name == 'BTL-A4 Y-wing' auto_equip: 21 }

Any ideas on how I might go about this?

geordanr commented 6 years ago

Not easily. You'd have to do something similar to the auto-equip functionality on upgrades, but I hadn't really put in a provision for pilot cards to have these kinds of effects.