kenan-rhoton / card-game

An iteratively designed card game by the members of TrollPlayingGame Discord.
MIT License
0 stars 1 forks source link

New ability: Card power modified depending on the row #150

Closed Masclins closed 6 years ago

Masclins commented 6 years ago

We will include a new rule:

Cards might have different values on certain rows.

My idea is to give rows the attribute :type "row's type". Some cards might have abilities that change their power depending on row's type.

Masclins commented 6 years ago

I'm willing to solve this as follows:

It's explained on the Manual

kenan-rhoton commented 6 years ago

I agree with this approach

Masclins commented 6 years ago

Trying to write this ability down I realized the function needs to know which card has the ability and on which row will be played. On the other hand, add-power needed only the target.

To avoid having to pass different arguments to every ability, it seems the wisest would be always passing game-state and play (a single play, the one that triggered the ability)

kenan-rhoton commented 6 years ago

that seems quite sensible, really, then it wouldn't even need a target