Skip to content

Commit

Permalink
more checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ElwinBran committed Jun 12, 2024
1 parent 2caf010 commit 6760572
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
4 changes: 1 addition & 3 deletions data/maps/Debug/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ Debug_GiveFormMon::

Debug_Battle::
lock
setwildbattle SPECIES_REGIGIGAS, 3, ITEM_NONE
delay 40
dowildbattle
givemon SPECIES_SUICUNE, 5, ITEM_NONE
release
end

Expand Down
13 changes: 6 additions & 7 deletions src/wild_pokemon_area.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,12 @@ s32 GetSpeciesPokedexAreaMarkers(u16 species, struct Subsprite * subsprites)

static s32 GetRoamerIndex(u16 species)
{
s32 i;
for (i = 0; i < ARRAY_COUNT(sRoamerPairs); i++)
{
if (sRoamerPairs[i].roamer == species)
return i;
}

if (species == SPECIES_ENTEI)
return 0;
if (species == SPECIES_SUICUNE)
return 1;
if (species == SPECIES_RAIKOU)
return 2;
return -1;
}

Expand Down

0 comments on commit 6760572

Please sign in to comment.