Complete.Org: Mailing Lists: Archives: freeciv-ai: May 2003:
[freeciv-ai] Re: improve diplomat logging + bugfix
Home

[freeciv-ai] Re: improve diplomat logging + bugfix

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: improve diplomat logging + bugfix
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Tue, 6 May 2003 12:42:46 +0100 (BST)

On Tue, 6 May 2003, Per I. Mathisen wrote:

> This patch improves logging in ai/aidiplomat.c, and also solves a little
> bug:
> 
> -    time_to_dest /= ut->move_rate;
>      time_to_dest *= (time_to_dest/2); /* No long treks, please */
> 
>      /* Almost kill_desire */
>      want = (p_success * gain - p_failure * loss) / 100
> -           - SHIELD_WEIGHTING * time_to_dest;
> +           - SHIELD_WEIGHTING * (time_to_dest / ut->move_rate);
> 
> If time_to_dest is == ut->move_rate, the penalty for long treks is never
> applied, leading to ballooning want in this case.

You logic escapes me.  

If 
        time_to_dest is == ut->move_rate
it means the diplomat can reach the city in one move.  So it's nice and 
convenient to bribe.  Why is it any worse than any other city which we can 
reach in one move?

> Since I can't see that there can be any controversial stuff in here, I'm
> committing this at once.

I see you got into committing frenzy ;)  Chill!

G.




[Prev in Thread] Current Thread [Next in Thread]