[Freeciv-Dev] (PR#11271) get_food_trade_shields isn't good
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11271 >
Here's a patch that fixes the aicity problem for 2.0.
-jason
Index: ai/aicity.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/aicity.c,v
retrieving revision 1.176.2.1
diff -u -r1.176.2.1 aicity.c
--- ai/aicity.c 31 Oct 2004 21:53:07 -0000 1.176.2.1
+++ ai/aicity.c 9 Dec 2004 20:19:53 -0000
@@ -112,6 +112,12 @@
trade -= city_corruption(acity, trade);
shields -= city_waste(acity, shields);
get_tax_income(pplayer, trade, &sci, &lux, &tax);
+ sci += (pcity->specialists[SP_SCIENTIST]
+ * game.specialists[SP_SCIENTIST].bonus);
+ lux += (pcity->specialists[SP_ELVIS]
+ * game.specialists[SP_ELVIS].bonus);
+ tax += (pcity->specialists[SP_TAXMAN]
+ * game.specialists[SP_TAXMAN].bonus);
built_impr_iterate(acity, i) {
tax -= improvement_upkeep(acity, i);
|
|