Page 1 of 1

Units have 20hp but only display 10

Posted: Fri Oct 08, 2021 7:13 pm
by prestidigitation
Image

I've wondered about this one for awhile and finally found a good picture showing it. The unit is at 10 displayed strength, but is giving off 19 rather than 20 supply. This implies both that it has lost .5 hp and that the game tracks 20 actual HP (or 10hp in 0.5 increments). Therefore a 0+ attack isn't predicting 0 damage with a chance of 1, but 0.5 damage.

Re: Units have 20hp but only display 10

Posted: Fri Oct 08, 2021 8:47 pm
by bru888
I wonder if this is two different rounding calculations at play. That is, the ship is actually partially damaged but still rounds up to strength 10. However, whatever small amount of damage it has sustained caused its available supply to round down to 19. Or maybe I am misunderstanding your question. What I believe you are asking is why a 10 strength supply ship would provide only 19 supply?

Re: Units have 20hp but only display 10

Posted: Sat Oct 09, 2021 4:39 am
by cutydt02
yes, about 0.5 dmg taken or slighly less, but the game will round up to 10 anyway. That means sometimes the dmg calculator showing that 0 dmg caused/taken doesn't mean they do nothing.

Re: Units have 20hp but only display 10

Posted: Sat Oct 09, 2021 7:44 am
by GabeKnight
IMO they probably have something like 50HP or 100HP (following the OP's reasoning).

Re: Units have 20hp but only display 10

Posted: Sat Oct 09, 2021 11:59 am
by PawelS
Or maybe the HP is internally a fractional number (floating-point type) instead of an integer.

Re: Units have 20hp but only display 10

Posted: Sat Oct 09, 2021 12:59 pm
by terminator
Does the number 19 remain yellow the following turns ?

PS : here is a lived example in computer programming :

1.3 + 1.3 = 2.6

If you round each number for the display, you get:

1 + 1 = 3 :shock:

Re: Units have 20hp but only display 10

Posted: Sat Oct 09, 2021 8:28 pm
by DeathMutant
Was the Supply Ship attacked recently? Perhaps it still has some suppression (efficiency degradation) even though it has full health?

Re: Units have 20hp but only display 10

Posted: Mon Oct 11, 2021 4:30 pm
by prestidigitation
terminator wrote: Sat Oct 09, 2021 12:59 pm Does the number 19 remain yellow the following turns ?

PS : here is a lived example in computer programming :

1.3 + 1.3 = 2.6

If you round each number for the display, you get:

1 + 1 = 3 :shock:
Yes, it’d been like that for several turns.

Re: Units have 20hp but only display 10

Posted: Mon Oct 11, 2021 4:30 pm
by prestidigitation
DeathMutant wrote: Sat Oct 09, 2021 8:28 pm Was the Supply Ship attacked recently? Perhaps it still has some suppression (efficiency degradation) even though it has full health?
No suppression, afaik ships can’t be suppressed. It was strafed by a fighter

Re: Units have 20hp but only display 10

Posted: Mon Oct 11, 2021 4:36 pm
by prestidigitation
PawelS wrote: Sat Oct 09, 2021 11:59 am Or maybe the HP is internally a fractional number (floating-point type) instead of an integer.
Also a possibility, and probably the truth in terms of implementation, but IMO it’s easiest to think of it as 20hp.