pret / pokeemerald

Decompilation of Pokémon Emerald
2.29k stars 2.62k forks source link

BUGFIX: Have fallback if level is 1 #2051

Closed AreaZR closed 1 month ago

AreaZR commented 1 month ago

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

AreaZR commented 1 month ago

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

AreaZR commented 1 month 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.