From 880b62790774e46c388a47a5cd06dfe5b15aef2c Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Thu, 12 Mar 2015 10:34:15 -0400 Subject: Fixed bug with data_potentialvps --- ai_weights.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ai_weights.c') diff --git a/ai_weights.c b/ai_weights.c index d559c0c..f614fe9 100644 --- a/ai_weights.c +++ b/ai_weights.c @@ -17,6 +17,7 @@ int cards_gettype(int era, int card); int* get_science(int player); int* get_special(int era, int card, int player); int data_potentialvps(int p, int era, int card); +int data_gettotvps(int p); int military_might(int player); int weight_science(int era, int card, int player) @@ -112,9 +113,7 @@ int weight_buildcard(int era, int card, int player) { int weight = data_potentialvps(player, era, card); weight -= data_gettotvps(player); - if(cards_gettype(era, card) == STRUCTURE) - weight *= 3; - weight /= 2; + if(cards_gettype(era, card) == STRUCTURE); //already done if(cards_gettype(era, card) == MILITARY) weight += weight_military(era, card, player); if(era == 2) return weight; -- cgit