Open Sauzels opened 6 years ago
Thanks, the calculation should be more accurate now. For the last point, I probably won't be fixing that since there isn't a demand for the visualizer to have rich and accurate battle engine interactivity. (While I would like that, I haven't had the time to make one like Dhason's and Showdown's code doesn't work well as a library I could use.)
idk how worried you are about a couple of damage points or if this is the right way to tell you but
I've seen min roll damage in the game do less than the visualizer's reported minimum roll, apparently because gen IV damage calculation has more floors than the Empire State Building. From rooting around in Pokémon Showdown's damage calculator:
Math.floor(Math.floor(Math.floor(2 * LEVEL / 5 + 2) * userBasePower * userAttack / 50) / foeDefense)
.I probably won't see it if you respond to this thread here but you should be able to find my Discord on the TPP channel.