[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]
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
|
|