Author: cazfi Date: Sun Sep 13 20:14:47 2015 New Revision: 29877 URL: http://svn.gna.org/viewcvs/freeciv?rev=29877&view=rev Log: AI want to conquer a city is based on the value of the city, not to hardcoded value.
See patch #6340 Modified: trunk/ai/default/advmilitary.c trunk/ai/default/aiunit.c Modified: trunk/ai/default/advmilitary.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/advmilitary.c?rev=29877&r1=29876&r2=29877&view=diff ============================================================================== --- trunk/ai/default/advmilitary.c (original) +++ trunk/ai/default/advmilitary.c Sun Sep 13 20:14:47 2015 @@ -1247,7 +1247,7 @@ } if (unit_can_take_over(myunit) || acity_data->invasion.occupy > 0) { /* bonus for getting the city */ - benefit += 40; + benefit += acity_data->worth / 5; } /* end dealing with cities */ Modified: trunk/ai/default/aiunit.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/aiunit.c?rev=29877&r1=29876&r2=29877&view=diff ============================================================================== --- trunk/ai/default/aiunit.c (original) +++ trunk/ai/default/aiunit.c Sun Sep 13 20:14:47 2015 @@ -1365,7 +1365,7 @@ || 0 < acity_data->invasion.occupy)) { /* There are units able to occupy the city after all defenders * are killed! */ - benefit += 60; + benefit += acity_data->worth * reserves / 5; } attack = attack_value + acity_data->attack; _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits