aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-03-12 10:34:15 -0400
committerNathan Vance <nathav63@gmail.com>2015-03-12 10:34:15 -0400
commit880b62790774e46c388a47a5cd06dfe5b15aef2c (patch)
treebe82cbf131c26804aa74883e723b5002f1f77408 /data.c
parentBug fixes (diff)
download7w-880b62790774e46c388a47a5cd06dfe5b15aef2c.tar.gz
7w-880b62790774e46c388a47a5cd06dfe5b15aef2c.tar.bz2
7w-880b62790774e46c388a47a5cd06dfe5b15aef2c.zip
Fixed bug with data_potentialvps
Diffstat (limited to 'data.c')
-rw-r--r--data.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/data.c b/data.c
index e3c2cd6..01f96fd 100644
--- a/data.c
+++ b/data.c
@@ -465,10 +465,14 @@ int data_potentialvps(int p, int era, int card)
int i;
for(i = 0; player[p][era][i] != -1; i++); //get free spot in array
player[p][era][i] = card; //build card
- player[i][3][3] += cards_getproduction(era, card)[GOLD];
+ player[p][3][3] += cards_getproduction(era, card)[GOLD];
+ player[p][3][3] += get_special(era, card, p)[1];
+ player[p][3][6] += cards_getproduction(era, card)[VP], p;
int vps = data_gettotvps(p);
+ player[p][3][6] -= cards_getproduction(era, card)[VP], p;
+ player[p][3][3] -= get_special(era, card, p)[1];
+ player[p][3][3] -= cards_getproduction(era, card)[GOLD];
player[p][era][i] = -1;
- player[i][3][3] -= cards_getproduction(era, card)[GOLD];
return vps;
}
bgstack15