Author: sveinung Date: Fri Oct 7 14:10:50 2016 New Revision: 34038 URL: http://svn.gna.org/viewcvs/freeciv?rev=34038&view=rev Log: ai attacker want: check occupation action...
when deciding how much a unit of a certain type is wanted (how much utility it has). A unit that can conquer a city is desired 10x the target city worth if the invasion has other units that can attack but no units that can conquer the city. See patch #7778 Modified: trunk/ai/default/daimilitary.c Modified: trunk/ai/default/daimilitary.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/daimilitary.c?rev=34038&r1=34037&r2=34038&view=diff ============================================================================== --- trunk/ai/default/daimilitary.c (original) +++ trunk/ai/default/daimilitary.c Fri Oct 7 14:10:50 2016 @@ -1032,7 +1032,7 @@ } else { if (acity - && uclass_has_flag(utype_class(punittype), UCF_CAN_OCCUPY_CITY) + && utype_can_take_over(punittype) && acity_data->invasion.attack > 0 && acity_data->invasion.occupy == 0) { desire = acity_data->worth * 10; _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits