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
to sohrebombard.

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:

  <http://gna.org/patch/?3383>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to