Author: cazfi
Date: Wed May 24 07:31:48 2017
New Revision: 35702

URL: http://svn.gna.org/viewcvs/freeciv?rev=35702&view=rev
Log:
Make AI less likely to stop building wonder

See hrm Feature #662556

Modified:
    branches/S2_6/ai/default/aicity.c

Modified: branches/S2_6/ai/default/aicity.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/ai/default/aicity.c?rev=35702&r1=35701&r2=35702&view=diff
==============================================================================
--- branches/S2_6/ai/default/aicity.c   (original)
+++ branches/S2_6/ai/default/aicity.c   Wed May 24 07:31:48 2017
@@ -1765,6 +1765,13 @@
             /* Not only would we get the wonder, but we would also prevent
              * opponents from getting it. */
             pcity->server.adv->building_want[idx] *= 1.5;
+
+            if (pcity->production.kind == VUT_IMPROVEMENT
+                && is_great_wonder(pcity->production.value.building)) {
+              /* If we already are building a great wonder, prefer continuing
+               * to do so over stopping it */
+              pcity->server.adv->building_want[idx] *= 1.25;
+            }
           }
 
           /* If I am not an expansionist, I want buildings more than units */


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to