Crafting is pretty much the same for every faction, other than the way the crafting power is calculated, so let's build something that can be reused for all of them.
For each craftable card in the player's hand, provide a craft(Card) action. This will require:
Determine how many crafting points the player has at the beginning
Which crafting points were spent
Special attention must be paid to for the wildcard crafting costs
Additionally, a done_crafting action should be provided so the player can indicate they will not be crafting any more.
Implement the crafting action for the Marquise in particular to make sure it all works. A proper UI will be needed, but at this time it does not need to be good, just put a few buttons on screen somewhere or something.
Cards which create items should be handled by now. Do not worry about effect cards.
Crafting is pretty much the same for every faction, other than the way the crafting power is calculated, so let's build something that can be reused for all of them.
For each craftable card in the player's hand, provide a
craft(Card)
action. This will require:Additionally, a
done_crafting
action should be provided so the player can indicate they will not be crafting any more.Implement the crafting action for the Marquise in particular to make sure it all works. A proper UI will be needed, but at this time it does not need to be good, just put a few buttons on screen somewhere or something.
Cards which create items should be handled by now. Do not worry about effect cards.