So i was reading the docs for the deck class and was wondering about how developers are handling metadata for each card. Hearts is a pretty easy example because its a single deck and the value of the cards explain themselves (numbers and suites). With multiple types of decks with cards that have abilities, cost, vp, conditions, etc, I'm thinking of doing a separate array for each deck that maps each card's type_id to an array of metadata. To make it less messy for me, I was gonna throw these arrays into some php file in the /modules directory and include it into the game.php file.
Are people kind of doing it like this or is there a more built in strategy? Would love for some advice.
Are people kind of doing it like this or is there a more built in strategy? Would love for some advice.