Myrten / CK3.Utils

Utilities for Crusader Kings III
0 stars 0 forks source link

Strength shouldn't be rounded down #1

Closed JereKuusela closed 4 years ago

JereKuusela commented 4 years ago

https://github.com/Myrten/CK3.Utils/blob/079017970690bc94c0306b3f0e4c880dbf4f6ac7/CK3.Utils.BattleSimulator/Simulation/Army.cs#L64

The game seems to use 3 decimals when storing the strength value. If I'm reading above line correctly your code rounds it down to the nearest integer after every round.