diff options
author | Nathan Vance <nathav63@gmail.com> | 2015-05-11 11:31:57 -0400 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2015-05-11 11:31:57 -0400 |
commit | 1fa2976e9fc3797e0438c7efc7cdfb0b0d27ea46 (patch) | |
tree | da409e7aa8b4f7c6fe88beb700b37d044aade6f0 /special_cards.c | |
parent | Changed initial array for pregame (diff) | |
download | 7w-1fa2976e9fc3797e0438c7efc7cdfb0b0d27ea46.tar.gz 7w-1fa2976e9fc3797e0438c7efc7cdfb0b0d27ea46.tar.bz2 7w-1fa2976e9fc3797e0438c7efc7cdfb0b0d27ea46.zip |
fixed bugs and formatting errors
Diffstat (limited to 'special_cards.c')
-rw-r--r-- | special_cards.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/special_cards.c b/special_cards.c index 8033700..ce307a2 100644 --- a/special_cards.c +++ b/special_cards.c @@ -19,9 +19,10 @@ int cardcounter(int *cards, int type) int* get_special(int era, int card, int player) { - //formatted vp, gold - static int ret[2]; + //formatted vp, gold, isspecial + static int ret[3]; ret[0] = ret[1] = 0; + ret[2] = 1; switch(era*100+card) { case 113: //Vineyard: 1 coin for each resource card of adjacent players or your own. ret[1] += cardcounter(data_getbuilt(data_geteast(player)), RESOURCE); @@ -89,7 +90,7 @@ int* get_special(int era, int card, int player) ret[0] += data_getwonderstages(data_getwest(player)); ret[0] += data_getwonderstages(player); break; - default: ret[0] = ret[1] = 0; + default: ret[0] = ret[1] = ret[2] = 0; break; } return ret; |