[Freeciv-Dev] Re: (PR#5079) mighty howitzers
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] Re: (PR#5079) mighty howitzers |
From: |
"Christian Knoke" <chrisk@xxxxxxxxx> |
Date: |
Wed, 13 Aug 2003 15:10:16 -0700 |
Reply-to: |
rt@xxxxxxxxxxxxxx |
On Wed, Aug 13, 2003 at 01:48:33PM -0700, Jason Short wrote:
> Christian Knoke wrote:
> > CVS 13 AUG 2003 GTK 1
> >
> > My alpine troops (veteran) have an attack chance of 28% against howitzers
> > (veteran status unknown) on pure plains terrain, according to the popup.
> >
> > Alpine Troops: Attack: 5 Hitpoints: 20
> >
> > Howitzer: Defense: 2 Hitpoints: 30
> >
> > Default ruleset.
> >
> > I cannot believe that. Also, I rather loose these battles.
>
> Try this patch. What's the output?
Attacking a stach of Mech.Inf. with an alpine troops (Gebirgsjäger):
2: Calculating win chance:
2: Gebirgsjäger: A: 75, HP: 16, FP: 1
2: Mech. Inf.: D: 198, HP: 30, FP: 1
2: Calculated win chance as 0,000000.
2: Calculating win chance:
2: Gebirgsjäger: A: 75, HP: 16, FP: 1
2: Mech. Inf.: D: 132, HP: 30, FP: 1
2: Calculated win chance as 0,000033.
2: Calculating win chance:
2: Gebirgsjäger: A: 75, HP: 16, FP: 1
2: Mech. Inf.: D: 132, HP: 30, FP: 1
2: Calculated win chance as 0,000033.
2: Calculating win chance:
2: Gebirgsjäger: A: 75, HP: 16, FP: 1
2: Mech. Inf.: D: 198, HP: 30, FP: 1
2: Calculated win chance as 0,000000.
2: Calculating win chance:
2: Gebirgsjäger: A: 75, HP: 16, FP: 1
2: Diplomat: D: 0, HP: 10, FP: 1
2: Calculated win chance as 1,000000.
So we see veteran and non-veteran Mech. Infs here, all with full HP.
60 (defence) * 1.5 (forest) * 1.5 (river) * 1.5 (veteran) = 202.5
60 (defence) * 1.5 (forest) * 1.5 (river) = 135.0
So the difference is because of use of integer instead of float?
2: Calculating win chance:
2: Gebirgsjäger: A: 75, HP: 20, FP: 1
2: Haubitze: D: 30, HP: 30, FP: 2
2: Calculated win chance as 0,286300.
A veteran howitzer here. This looks correct.
Christian
--
Christian Knoke * * * http://www.cknoke.de
* Please note new mail address - Neue Mailadresse beachten *
* * * * * * * * * Ceterum censeo Microsoft esse dividendum.
Message not available
|
|