Closed oskarrough closed 1 year ago
Each card now has its own file and must follow provide two exports:
export default { ... card } export const upgrade = (card) => card
This has the benefit that cards no longer have a upgrade method on the card object itself, which was giving trouble when serializing game state.
upgrade
Closes https://github.com/oskarrough/slaytheweb/issues/185
638cdf6
View logs
Each card now has its own file and must follow provide two exports:
This has the benefit that cards no longer have a
upgrade
method on the card object itself, which was giving trouble when serializing game state.Closes https://github.com/oskarrough/slaytheweb/issues/185