Thread:FixSRwiki/@comment-46261745-20201012171553/@comment-46261745-20201025123255

tagBattleBar::calcBarSize looks manageable, no? It seems to just be calculating some kind of ratio for the bar.

Assuming starting values of something like 50 for player side and 60 for enemy side in an enemy field, then...

nMax is 110

nW1 would become 400 * 50 / 110 = 181

nW2 would become 400 * 60 / 110 = 218

Sum is 399, so the higher value, nW2, would become 219, that part is essentially a rounding clause.

Then nW1, ie, the ratio out of 400 that the Oda side's battle rating takes up, is returned to do the animation update.

So can't we safely say that the bar is out of 400, and that it will always round the higher side up to equal 400?