mirror of
https://github.com/risingPhil/libpokemegb.git
synced 2026-04-26 02:02:32 -05:00
Fix bug and make unknown move (or moveIndex 0) return an empty string in getMoveString()
This commit is contained in:
parent
0fd91fb8e5
commit
47ec404aac
|
|
@ -507,6 +507,6 @@ const char *getMoveString(Move move)
|
|||
case Move::BEAT_UP:
|
||||
return "Beat Up";
|
||||
default:
|
||||
return "Unknown move";
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
|
@ -432,7 +432,7 @@ bool gen2_isPokemonShiny(Gen2TrainerPokemon& poke)
|
|||
// based on https://bulbapedia.bulbagarden.net/wiki/Shiny_Pok%C3%A9mon#Determining_Shininess
|
||||
const PokeStat statsToCheckFor10[] = {PokeStat::SPEED, PokeStat::DEF, PokeStat::SPECIAL};
|
||||
|
||||
for(uint8_t i=0; i < sizeof(statsToCheckFor10); ++i)
|
||||
for(uint8_t i=0; i < (sizeof(statsToCheckFor10) / sizeof(statsToCheckFor10[0])); ++i)
|
||||
{
|
||||
if(getStatIV(statsToCheckFor10[i], poke.iv_data) != 10)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user