Giter Site home page Giter Site logo

throneteki-json-data's Introduction

throneteki-json-data

Card data used by The Iron Throne / throneteki. Each JSON file in the packs directory should correspond to a pack or expansion for A Game of Thrones: The Card Game 2nd Edition. Initial data set pulled from https://github.com/Alsciende/thronesdb-json-data

Getting started

npm install

Validating

To validate all card data against the schema, run:

npm test

Exporting to thronesdb-json-data

To export the card data to the ThronesDB data format, run:

npm run export path/to/thronesdb-json-data

This will create any new pack files necessary as well as update existing packs with missing card data. Fields that are not included in this schema (such as flavor and illustrator) will need to be manually updated in the exported data. Additionally, if it is a new pack, you'll need to add the pack info to packs.json for thronesdb-json-data.

Importing from CGDB

Once the pack data is available on CGDB, it can be imported to the throneteki-json-data format by running:

npm run import-cgdb packs/packFileName.json cycleCode
# Example: npm run import-cgdb packs/SoD.json 10

The local pack file must already exist - the import script uses the the cgdbId field in the pack data to look up the corresponding data on CGDB. After the import is complete, close review of the text field for cards may be necessary as the CGDB format is a bit more loose than what is used here and on ThronesDB.

Travis Build

throneteki-json-data's People

Contributors

ystros avatar duketax avatar cryogen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.