2.7.0 • Published 2 years ago

throneteki-deck-helper v2.7.0

Weekly downloads
71
License
MIT
Repository
github
Last release
2 years ago

throneteki-deck-helper

Deck formatting and validation helpers for throneteki

Usage

validateDeck(deck, options)

Returns validation status for the specified deck. Options must include an array of packs data and restrictedList data from throneteki-json-data.

The returned object breaks down any problems with the specified deck in the following fields:

  • basicRules - boolean specifying whether standard faction and agenda rules were obeyed.
  • faqJoustRules - boolean specifying whether the deck adheres to Joust format restrictions of the FAQ.
  • faqVersion - which version of the FAQ was checked
  • noBannedCards - boolean specifying whether any cards in the deck appear on the current ban list.
  • noUnreleasedCards - boolean specifying whether any cards in the deck haven't been released yet.
  • extendedStatus - array of user-presentable error messages related to validation.

formatDeckAsFullCards(deck, data)

Creates a clone of the existing deck with full card data filled in instead of just card codes.

The data parameter must include a cards object that indexes from card code to full card data, and may contain a factions object that indexes from faction code to full faction data.

formatDeckAsShortCards(deck)

Creates a clone of the existing deck with only card codes instead of full card data.

2.7.0

2 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.5.1

3 years ago

2.4.0

3 years ago

2.3.0

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.3.0

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

7 years ago

1.0.0

7 years ago