How does MV handle rounding on base parameters? Does it truncate it off, or does it actually round to the nearest whole?
For example,
if I have a defense of 1 and I multiply it by 150% with a status (result of 1.5), will the game treat it as a 1 or a 2?
What if I have a defense of 2 and I multiply it by 66% (for a result of ~1.33)?
Base Parameter rounding?
● ARCHIVED · READ-ONLY
-
-
integers and similiar numbers are usually truncated, 1.8 -> 1
however, it depends on the exact formula because of the way the function works, especially if using control variable command. -
If I recall correctly, it's an integer, meaning no decimal. However, the way it is calculated does take in consideration decimals, it just rounds it up after calculation. Meaning every level doesn't add something, but will rather result in a new calculation. Something like this:
Physical Attack = Base Stat + Growth * (level - 1)
If base stat = 10
growth = 2.7
level = 15
Then Physical Attack = 10 + 2.7 * 14 = 47.8
which would make it 47 (or 48, depending on if it rounds or it floors the value). -
integers and similiar numbers are usually truncated, 1.8 -> 1
however, it depends on the exact formula because of the way the function works, especially if using control variable command.
I'm specifically looking at the case of base parameters (stats) being controlled with a trait (from equipment, status effects, class, etc.)