0xFableOrg / 0xFable

A fully on-chain trading card game. There will be elves, wizards & shit. Drama and broken friendships also.
https://twitter.com/0xFableGame
BSD 3-Clause Clear License
105 stars 38 forks source link

hotfix for card art not loading #101

Closed eviterin closed 10 months ago

eviterin commented 10 months ago

Context (Problem, Motivation, Solution)

Seems we are in drawInitialHand.ts assume that there are cards up to index 255. When checking card-list.ts we only have 12 cards. This means that we often get cards without any art/info when playing the game.

This is a simple fix, which just adds cards up to index 255.

Checklist

Testing

Opened two instances of the game. Updated the card-list.ts file with my update. Asserted that cards were loading.

norswap commented 10 months ago

Thanks!