pret / pokeemerald

Decompilation of Pokémon Emerald
2.28k stars 2.55k forks source link

BUGFIX: Have fallback if level is 1 #2051

Closed AreaZR closed 2 weeks ago

AreaZR commented 2 weeks ago

This does not happen in vanilla, but in the event level is 1, prevent GetLevelFromMonExp from returning 0.

AreaZR commented 2 weeks ago

Should not matter in vanilla, but it's a good fallback just in case.

AreaZR commented 2 weeks ago

This is probably more useful in emerald expansion or other romhacks but it also doesn't hurt vanilla at all, so. Maybe the maintainers can give their opinions.