Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Card implementation guide #13

Open
rgraciano opened this issue Apr 14, 2021 · 1 comment
Open

[Docs] Card implementation guide #13

rgraciano opened this issue Apr 14, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@rgraciano
Copy link
Owner

It would be helpful if we had a card implementation guide to go wider with card development. From my notes:

  • cardApi: anything that manipulates the game board, could trigger other effects, etc goes here
  • giveBonus/removeBonus: any kind of conditional bonuses given to other cards go here
  • Abilities: anything that needs to be chosen on the front end, targets other cards, etc goes here. 3 types (normal, staging, handler).
  • Document the difference between an alteration, a hook, and a handler, and when to use each
@rgraciano rgraciano added the enhancement New feature or request label Apr 14, 2021
@rgraciano
Copy link
Owner Author

Some examples for how cards could be implemented:

Murkwood Allies:

  • Boost, Beast, and Frogs are options
  • Then spell should be discarded

Behind the Ferns

  • Implements onLeaves, checks for Feral hero leaving
  • When played, has only one (or no) abilities so user choice clears immediately
    Implements giveBonus
  • Has to stay in Play (Channeling)

Moment’s Peace

  • Add card to Effects list and to discard; having two copies of the card should be fine
    Implements a couple of hooks not yet created that get checked on getAllActiveCards stuff
  • On start of turn, needs a property that tells game to remove from active Effects (forget card)

Stalking Tiger

  • Needs giveBonus/removeBonus from Feral hero for the invisible status
    Implements StealthWhenAttacking
  • Test: detected by tower after choosing a target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant