RoyaleAPI / cr-api-data

Clash Royale API Static data and constants.
http://RoyaleAPI.com
42 stars 23 forks source link

Use number datatype instead of string on cards #1

Closed weeco closed 7 years ago

weeco commented 7 years ago

Refering to your cards.json: https://github.com/cr-api/cr-api-data/blob/master/dst/cards.json

Why are you using a string to represent the "decklink" which is always (as far as I can see) a number?

smlbiobot commented 7 years ago

@weeco they are strings because it is unclear if sometimes the constants might start with a number — in case Supercell decides to prepend numbers as 00000008 instead of 26000008 it will no longer work. They are only used to create URLs anyway.