Author: cazfi Date: Wed May 24 07:31:41 2017 New Revision: 35701 URL: http://svn.gna.org/viewcvs/freeciv?rev=35701&view=rev Log: Make AI less likely to stop building wonder
See hrm Feature #662556 Modified: branches/S3_0/ai/default/aicity.c Modified: branches/S3_0/ai/default/aicity.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S3_0/ai/default/aicity.c?rev=35701&r1=35700&r2=35701&view=diff ============================================================================== --- branches/S3_0/ai/default/aicity.c (original) +++ branches/S3_0/ai/default/aicity.c Wed May 24 07:31:41 2017 @@ -1880,6 +1880,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