[freeciv-ai] Re: improve diplomat logging + bugfix
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, 6 May 2003, Per I. Mathisen wrote:
> This patch improves logging in ai/aidiplomat.c, and also solves a little
> - 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.
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!