Page 1 of 1

Unit Health needs rounding when unit gets upgraded IMPLEMENTED

Posted: Wed Jun 10, 2020 9:31 pm
by Instant
In historical company (battle with Troya) after ubgrading swordman to broadsword man one of the units get 5,8/21 hp point, is it normal? Cause units can do only integer damage

Re: Unit Health

Posted: Thu Jun 11, 2020 4:14 am
by Endru1241
It's not. Thanks for noticing.
Floating point hp was introduced to increase precision of building time - especially for siege machines.
For damage it's rounded down, but not less than 1.
Upgrade should round hp too - maybe at some point the rounding is skipped.
@Stratego (dev) ?

Re: Unit Health needs rounding when unit gets upgraded IMPLEMENTED

Posted: Thu Jun 11, 2020 6:21 am
by Stratego (dev)
ok, fixed, thx
will be in next update