Complete.Org: Mailing Lists: Archives: freeciv-dev: December 1998:
[Freeciv-Dev] Diplomat patch
Home

[Freeciv-Dev] Diplomat patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Diplomat patch
From: Nicolas BRUNEL <brunel@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 19 Dec 1998 20:50:24 +0100 (CET)

Hello,

In this patch, ai will

1) detect a diplomat threat if there is a diplomat or a spy coming near a
city and there is no diplomat or spy in the city.
2) ask for diplomats before anything else.
3) As ai don't know how to use diplomats and spies,
the fonction ai_manage_unit will return immediately for these units.

There is at least one weak spot :
If towns are attacked with diplomats and armies, the last
defender will always be a diplomat or a spy.
There is no difference between the above case and when a ennemy
town in the neighbourhood has a defensive unit in it.
This problem arises from the functions assess_danger and
assess_danger_unit.

This patch is vs 19 december 1998 CVS freeciv version.

Bye,

 Nicolas BRUNEL
 LIM Case 901, 
 163 Avenue de Luminy             brunel@xxxxxxxxxxxxxxx
 13288 Marseille Cedex 9  France  tel +33 04 9182 (8524) fax 9275

Attachment: dipl2.diff.gz
Description: force ai to build diplomats when threatened by diplomats


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Diplomat patch, Nicolas BRUNEL <=