You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pokemon can have half-levels, although they don't appear in the wild that way. They can be in gyms with half-levels. The current equation appears to only allow for integer levels.
Current Behavior
In getPokemonLevel:
pokemonLevel = (Math.round(pokemonLevel) * 2) / 2
Possible Solution
pokemonLevel = Math.round(pokemonLevel*2) / 2
Steps to Reproduce (for bugs)
This probably isn't being noticed because RM doesn't show pokemon level in the gym overlay. I suspect that if it did we'd see it. Pokemon in the wild only have integer levels.
Context
Not at all, but ... my OCD tendencies think it should be fixed.
Your Environment
Windows 10, Python 2.7
The text was updated successfully, but these errors were encountered:
Yeah, that's what piqued my interest. I'm pretty sure the intent was to round to the nearest half-level. I believe that this bug propagates to PokeAlarm, Monocle, and the Sloppy fork...I know I saw it in some python code somewhere also.
Expected Behavior
Pokemon can have half-levels, although they don't appear in the wild that way. They can be in gyms with half-levels. The current equation appears to only allow for integer levels.
Current Behavior
In getPokemonLevel:
pokemonLevel = (Math.round(pokemonLevel) * 2) / 2
Possible Solution
Steps to Reproduce (for bugs)
This probably isn't being noticed because RM doesn't show pokemon level in the gym overlay. I suspect that if it did we'd see it. Pokemon in the wild only have integer levels.
Context
Not at all, but ... my OCD tendencies think it should be fixed.
Your Environment
Windows 10, Python 2.7
The text was updated successfully, but these errors were encountered: