September 15th, 2006, 01:29
Posts: 104
Threads: 7
Joined: Jun 2006
Quote:What does the code say about a tie? Who gets picked, then?
Short answer: oldest unit.
------------
Long answer:
The actual code just loops through the list of units starting from your first unit, going to the last unit, for each great person you need.
I believe the list is in the order the units are created, so the oldest great person would be used, because ties go to the first match found.
The best thing to do is to just put the ones you want to use on the same tile, but for those that care, plot distance is calculated as follows, (it is not true cartisian distance):
Code:
4 | 4 | 3 | 3 | 3 | 4 | 4
-------------------------
4 | 3 | 2 | 2 | 2 | 3 | 4
-------------------------
3 | 2 | 1 | 1 | 1 | 2 | 3
-------------------------
3 | 2 | 1 | 0 | 1 | 2 | 3
-------------------------
3 | 2 | 1 | 1 | 1 | 2 | 3
-------------------------
4 | 3 | 2 | 2 | 2 | 3 | 4
-------------------------
4 | 4 | 3 | 3 | 3 | 4 | 4
-Iustus