kenan-rhoton / card-game

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

Row types #164

Open Masclins opened 6 years ago

Masclins commented 6 years ago

Description

New ability created: Now cards can have an ability that makes their power change when played on specific rows.

Rows can have a :type and this ability checks if the card had been played on a row of the appropriate type.

Also, I changed (add-power so all abilities recieve game-state and play.

Issues Resolved

Resolves #150

Hotspots

(rules.abilities/type-add-power is probably what's most relevant.

Still, I find it very important to double-check that we have all the tests we'd want to.

Checklist for contribution requirements

Masclins commented 6 years ago

Errors on tests now are because it's implemented that all abilities require a target. I'll change that when #165 is merged, since I'll use what's implemented there (that returns the number of needed targets)