added missing minior description + test for missing descriptions (#4858)
This commit is contained in:
parent
ec75a75498
commit
a8ae1a0342
4 changed files with 25 additions and 5 deletions
|
@ -31,11 +31,7 @@ const struct SpeciesInfo gSpeciesInfo[] =
|
|||
.categoryName = _("Unknown"),
|
||||
.height = 0,
|
||||
.weight = 0,
|
||||
.description = COMPOUND_STRING(
|
||||
"This is a newly discovered Pokémon.\n"
|
||||
"It is currently under investigation.\n"
|
||||
"No detailed information is available\n"
|
||||
"at this time."),
|
||||
.description = gFallbackPokedexText,
|
||||
.pokemonScale = 256,
|
||||
.pokemonOffset = 0,
|
||||
.trainerScale = 256,
|
||||
|
|
|
@ -3617,6 +3617,7 @@ const struct SpeciesInfo gSpeciesInfoGen7[] =
|
|||
.baseSpAttack = 60, \
|
||||
.baseSpDefense = 100, \
|
||||
.weight = 400, \
|
||||
.description = gMiniorMeteorPokedexText, \
|
||||
.frontPic = gMonFrontPic_MiniorMeteor, \
|
||||
.frontPicSize = MON_COORDS_SIZE(48, 40), \
|
||||
.frontPicYOffset = 14, \
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
// fallback
|
||||
const u8 gFallbackPokedexText[] = _(
|
||||
"This is a newly discovered Pokémon.\n"
|
||||
"It is currently under investigation.\n"
|
||||
"No detailed information is available\n"
|
||||
"at this time.");
|
||||
|
||||
// Gen 1 families
|
||||
const u8 gRaticateAlolanPokedexText[] = _(
|
||||
"It forms a group of Rattata, which it \n"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "global.h"
|
||||
#include "string_util.h"
|
||||
#include "test/test.h"
|
||||
#include "constants/form_change_types.h"
|
||||
|
||||
|
@ -129,3 +130,18 @@ TEST("No species has two evolutions that use the evolution tracker")
|
|||
|
||||
EXPECT(evolutionTrackerEvolutions < 2);
|
||||
}
|
||||
|
||||
extern const u8 gFallbackPokedexText[];
|
||||
|
||||
TEST("Every species has a description")
|
||||
{
|
||||
u32 i;
|
||||
u32 species = SPECIES_NONE;
|
||||
for (i = 1; i < NUM_SPECIES; i++)
|
||||
{
|
||||
if (IsSpeciesEnabled(i))
|
||||
PARAMETRIZE { species = i; }
|
||||
}
|
||||
|
||||
EXPECT_NE(StringCompare(GetSpeciesPokedexDescription(species), gFallbackPokedexText), 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue