From 3bc64a91ce3478fdffcacf2ad5585c3922a4b187 Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Thu, 26 Feb 2015 13:37:08 -0500 Subject: Started adding support for special cards --- data.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'data.c') diff --git a/data.c b/data.c index 8959ab2..38baa50 100644 --- a/data.c +++ b/data.c @@ -14,7 +14,7 @@ int* trade_buffer(); #define DATAGOLD 0 static int decks[3][49]; -static int player[7][4][7]; //3 eras and extra stuff (wonder, wonder side, wonder stages completed, gold, military wins, defeats) +static int player[7][4][7]; //3 eras and extra stuff (wonder, wonder side, wonder stages completed, gold, military wins, defeats, vps(partial)) static int buffer[7][2]; static int hands[7][7]; static int numplayers; @@ -152,6 +152,11 @@ int data_getwonderstages(int p) return player[p][3][2]; } +int data_getdefeats(int p) +{ + return player[p][3][5]; +} + int data_getgold(int p) { return player[p][3][3] + turngoldbuffer[p]; @@ -163,6 +168,11 @@ void data_addgold(int amnt, int p) turngoldbuffer[p] += amnt; } +void data_addvps(int amnt, int p) +{ + player[p][3][6] += amnt; +} + int data_numplayers() { return numplayers; -- cgit