Complete.Org: Mailing Lists: Archives: freeciv-ai: September 2004:
[freeciv-ai] (PR#10232) AI overestimates costal defence
Home

[freeciv-ai] (PR#10232) AI overestimates costal defence

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [freeciv-ai] (PR#10232) AI overestimates costal defence
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Tue, 21 Sep 2004 08:05:32 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10232 >

Patch attached
--
mateusz
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! */
            }

[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] (PR#10232) AI overestimates costal defence, Mateusz Stefek <=