Follow-up Comment #3, patch #3383 (project freeciv):
Oh, is_square_threatened() checks only against land threats. This should also
prevent autosettler from going to coastal tile which battleship is just about
Maybe adv_danger_at() is the function you want to use? It also makes callback
to AI code so settler armor check could be implemented there - autosettler for
human players would consistently not to enter dangerous tiles (this is *good*
thing; consistency for human players, who can anyway order settlers manually
if they want).
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list