(PR#10232) AI overestimates costal defence

"Mateusz Stefek" <mstefek-IjDXvh/[email protected]>
Newsgroups gmane.games.freeciv.ai
Message-ID <[email protected]>
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10232 >

Patch attached
--
mateusz
costal_def.diff (text/x-patch, 600 B)
Index: aicity.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/aicity.c,v
retrieving revision 1.166
diff -u -r1.166 aicity.c
--- aicity.c	20 Sep 2004 13:27:08 -0000	1.166
+++ aicity.c	21 Sep 2004 15:04:42 -0000
@@ -422,7 +422,7 @@
                 }
               } adjc_iterate_end;
             }
-	    v += (amount + ai->threats.invasions - 1) * c; /* for wonder */
+	    v += (amount/20 + ai->threats.invasions - 1) * c; /* for wonder */
 	    if (capital && ai->threats.invasions) {
 	      v += amount; /* defend capital! */
 	    }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.