[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]
Am Dienstag, 5. Juni 2001 00:48 schrieben Sie:
> >
> > Login as chris and attack finnish city of Pori with a
> > battle ship. city defends with 1. musketeer, 2. diplomat,
> > 3. ironclad.
> >
> > --------
> > 3: attack:180, defense:45, attack firepower:1, defense firepower:1
> > 3: attack:180, defense:0, attack firepower:1, defense firepower:1
> > 3: attack:180, defense:40, attack firepower:2, defense firepower:1
> > --------
>
> This looks like an obvious bug at first, but looking closer I am not
> so sure it should be considered a bug.
> What happens is that the algoritm determines that none of the units
> have any chance of winning, so it just feeds the units with the
> lowest value (build cost) first. Since an ironclad is expensive it
> gets to defend last. If it is going to choose defenders for me I
> think I prefer that it stays as it is. :)
Maybe they'd better get the sack and leave the scene? :)
>
> That said, the algoritm is somewhat simple, and I had not thought
> much about this consequence when I wrote it.
>
What do you think about a defense value / build cost ratio, or
even better, a winning chance / build cost ratio? Don't forget,
they weaken their enemy and cut the attackers MP.
It depends of course what you define "no chance of winning".
> -Thue
Christian
--
* Christian Knoke +49 4852 92248 *
* D-25541 Brunsbuettel Wurtleutetweute 49 *
* * * * * * * * * Ceterum censeo Microsoft esse dividendum.
|
|