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
[X] I have performed a self-review of my code
[ ] I ran make check and fixed resulting issues
[ ] I ran the relevant tests and they all pass
[ ] I wrote tests for my new features, or added regression tests for the bug I fixed
Testing
Opened two instances of the game.
Updated the card-list.ts file with my update.
Asserted that cards were loading.
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
make check
and fixed resulting issuesTesting
Opened two instances of the game. Updated the card-list.ts file with my update. Asserted that cards were loading.