aboutsummaryrefslogtreecommitdiff
path: root/ai_weights.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-03-12 10:13:16 -0400
committerNathan Vance <nathav63@gmail.com>2015-03-12 10:13:16 -0400
commit68c563442e7103e2472f148d05bc8c5bd385e661 (patch)
treed310be0c3fb76130a0ff9415f815fd3e95f10e4c /ai_weights.c
parentSquelched some bugs, more to go! (diff)
download7w-68c563442e7103e2472f148d05bc8c5bd385e661.tar.gz
7w-68c563442e7103e2472f148d05bc8c5bd385e661.tar.bz2
7w-68c563442e7103e2472f148d05bc8c5bd385e661.zip
Bug fixes
Diffstat (limited to 'ai_weights.c')
-rw-r--r--ai_weights.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ai_weights.c b/ai_weights.c
index bd7cd0c..d559c0c 100644
--- a/ai_weights.c
+++ b/ai_weights.c
@@ -103,6 +103,7 @@ int weight_commercial(int era, int card, int player)
if(era == 1) {
if(card == 11 || card == 12) return weight_resource(era, card, player);
if(card == 13 || card == 14) return weight_gold(get_special(era, card, player)[1], player);
+
}
return 0;
}
@@ -111,6 +112,9 @@ 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) == MILITARY)
weight += weight_military(era, card, player);
if(era == 2) return weight;
bgstack15