Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2001:
[Freeciv-Dev] Re: Wrong sequence of defending units (PR#796)
Home

[Freeciv-Dev] Re: Wrong sequence of defending units (PR#796)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Christian Knoke <ChrisK@xxxxxxxx>, Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Wrong sequence of defending units (PR#796)
From: Thue <thue@xxxxxxx>
Date: Thu, 7 Jun 2001 23:19:46 +0200

On Tuesday 05 June 2001 20:30, Christian Knoke wrote:
> Am Dienstag,  5. Juni 2001 01:39 schrieben Sie:
> > Given a veteran unit with defense of 2 *3/2 = 3 and a non-veteran
> > with defense 3, the non-veteran is more valuable. This is not taken
> > into account either. Also, you want to not use units that are not at
> > full health, as they will be more powerfull later.
>
> If I understand you right, the defending unit now is choosen
> regardless of having full HP or not. Given, that this function
> is used in every battle, AI or human, I would prefer a slight
> improvement of this function.
>
> Not that I am in a position to do it myself ...
>
> Greetings,
> Christian

What I mean is that given:
unit A with defense 2, 10/10hps
unit B with defense 2, 10/20hps
the algoritm has no preference; the units look identical.
What  it should do is save the unit with 10/20hp so that it can grow to full 
strenght and fight another day.

-Thue


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