FAForever / fa

Lua code for FAF
223 stars 230 forks source link

3rd vet level of aeon/uef/sera acu showing un-rounded number #2501

Open shalkya opened 6 years ago

shalkya commented 6 years ago

image image image

speed2CZ commented 5 years ago

So the ACUs are using a VeteranHealingMult from the bp The magic happens inside DoVeterancyHealing function https://github.com/FAForever/fa/blob/develop/lua/sim/Unit.lua#L1417-L1423

Taking the UEF ACU, 12000 * 0.3 should be 3600 But the game gets a result 3600.0002441406 Using math.floor() got the number to 3600 But then the fucntion AdjustHealth got the result wrong anyway by one of as in the picture. So it must be something inside the engine?

MrRowey commented 3 months ago

@lL1l1 something you would me interested into looking at ?