foxfriends / root

Play Root online with friends. Original board game by Cole Wehrle, with art by Kyle Ferrin
6 stars 1 forks source link

Crafting #62

Open foxfriends opened 3 years ago

foxfriends commented 3 years ago

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:

  1. Determine how many crafting points the player has at the beginning
  2. Which crafting points were spent
  3. 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.