Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2005:
[Freeciv-Dev] Re: (PR#12959) AI alternates between 80% entertainers and
Home

[Freeciv-Dev] Re: (PR#12959) AI alternates between 80% entertainers and

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: peter.schaefer@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12959) AI alternates between 80% entertainers and 80% tax.
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 2 May 2005 11:41:02 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12959 >

On Mon, 2 May 2005, Peter Schaefer wrote:
> The /away AI of 2.0.0 alternates between 80% entertainers and 80% tax.

1. The AI tax code in 2.0 is a bit broken. Fixed in cvs head.
2. We shouldn't try to celebrate when in /away mode:

+++ ai/aihand.c 2 May 2005 18:40:04 -0000
@@ -169,7 +169,8 @@
    * celebrate for other reasons than growth. Currently
    * this is ignored. Maybe we need ruleset AI hints. */
   /* TODO: Allow celebrate individual cities? No modpacks use this yet.
*/
-  if (get_player_bonus(pplayer, EFT_RAPTURE_GROW) > 0) {
+  if (get_player_bonus(pplayer, EFT_RAPTURE_GROW) > 0
+      && !ai_handicap(pplayer, H_AWAY)) {
     int luxrate = pplayer->economic.luxury;
     int scirate = pplayer->economic.science;

  - Per





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#12959) AI alternates between 80% entertainers and 80% tax., Per I. Mathisen <=