Add text fitting tests for move, ability, item, and pokedex descriptions (#5505)
This commit is contained in:
parent
b5c884504c
commit
743dc4d765
@ -1550,7 +1550,7 @@ const struct Ability gAbilitiesInfo[ABILITIES_COUNT] =
|
||||
[ABILITY_SLUSH_RUSH] =
|
||||
{
|
||||
.name = _("Slush Rush"),
|
||||
.description = COMPOUND_STRING("Raises Speed in Hail or Snow."),
|
||||
.description = COMPOUND_STRING("Raises Speed in Hail/Snow."),
|
||||
.aiRating = 5,
|
||||
},
|
||||
|
||||
@ -2573,7 +2573,7 @@ const struct Ability gAbilitiesInfo[ABILITIES_COUNT] =
|
||||
[ABILITY_TERA_SHELL] =
|
||||
{
|
||||
.name = _("Tera Shell"),
|
||||
.description = COMPOUND_STRING("Resistant to types at full HP."),
|
||||
.description = COMPOUND_STRING("Resists all at full HP."),
|
||||
.aiRating = 10,
|
||||
.cantBeCopied = TRUE,
|
||||
.cantBeSwapped = TRUE,
|
||||
@ -2588,7 +2588,7 @@ const struct Ability gAbilitiesInfo[ABILITIES_COUNT] =
|
||||
#else
|
||||
.name = _("TeraformZero"),
|
||||
#endif
|
||||
.description = COMPOUND_STRING("Removes weather and terrain."),
|
||||
.description = COMPOUND_STRING("Zeroes weather and terrain."),
|
||||
.aiRating = 10,
|
||||
.cantBeCopied = TRUE,
|
||||
.cantBeSwapped = TRUE,
|
||||
|
||||
150
src/data/items.h
150
src/data/items.h
@ -538,9 +538,9 @@ const struct Item gItemsInfo[] =
|
||||
.name = _("Sport Ball"),
|
||||
.price = (I_PRICE < GEN_3 || I_PRICE >= GEN_9) ? 0 : 300,
|
||||
.description = COMPOUND_STRING(
|
||||
"A special Ball used\n"
|
||||
"in the Bug-Catching\n"
|
||||
"Contest."),
|
||||
"A special Ball\n"
|
||||
"used in the Bug-\n"
|
||||
"Catching Contest."),
|
||||
.pocket = POCKET_POKE_BALLS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.battleUsage = EFFECT_ITEM_THROW_BALL,
|
||||
@ -3176,9 +3176,9 @@ const struct Item gItemsInfo[] =
|
||||
.name = _("Jaw Fossil"),
|
||||
.price = (I_PRICE >= GEN_7) ? 7000: 1000,
|
||||
.description = COMPOUND_STRING(
|
||||
"A piece of a prehis-\n"
|
||||
"toric Pokémon's\n"
|
||||
"large jaw."),
|
||||
"A piece of a\n"
|
||||
"prehistoric Poké-\n"
|
||||
"mon's large jaw."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -3192,9 +3192,9 @@ const struct Item gItemsInfo[] =
|
||||
.name = _("Sail Fossil"),
|
||||
.price = (I_PRICE >= GEN_7) ? 7000: 1000,
|
||||
.description = COMPOUND_STRING(
|
||||
"A piece of a prehis-\n"
|
||||
"toric Pokémon's\n"
|
||||
"skin sail."),
|
||||
"A piece of a\n"
|
||||
"prehistoric Poké-\n"
|
||||
"mon's skin sail."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -4169,8 +4169,8 @@ const struct Item gItemsInfo[] =
|
||||
.price = (I_PRICE >= GEN_7) ? 2000 * TREASURE_FACTOR : 2100,
|
||||
.description = COMPOUND_STRING(
|
||||
"Loved by a certain\n"
|
||||
"Pokémon. Imbued with\n"
|
||||
"spiritual energy."),
|
||||
"Pokémon. Imbued\n"
|
||||
"with spirit energy."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = EVO_HELD_ITEM_TYPE,
|
||||
.fieldUseFunc = EVO_HELD_ITEM_FIELD_FUNC,
|
||||
@ -4186,8 +4186,8 @@ const struct Item gItemsInfo[] =
|
||||
.price = (I_PRICE >= GEN_9) ? 3000 : ((I_PRICE >= GEN_7) ? 2000 : 500),
|
||||
.description = COMPOUND_STRING(
|
||||
"A mysterious scale\n"
|
||||
"that evolves certain\n"
|
||||
"Pokémon. It shines."),
|
||||
"that evolves a\n"
|
||||
"certain Pokémon."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = EVO_HELD_ITEM_TYPE,
|
||||
.fieldUseFunc = EVO_HELD_ITEM_FIELD_FUNC,
|
||||
@ -4220,8 +4220,8 @@ const struct Item gItemsInfo[] =
|
||||
.name = _("Sachet"),
|
||||
.price = (I_PRICE >= GEN_7) ? 2000 * TREASURE_FACTOR : 2100,
|
||||
.description = COMPOUND_STRING(
|
||||
"A sachet filled with\n"
|
||||
"perfumes loved by\n"
|
||||
"A sachet of strong\n"
|
||||
"perfumes, loved by\n"
|
||||
"a certain Pokémon."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = EVO_HELD_ITEM_TYPE,
|
||||
@ -4237,9 +4237,9 @@ const struct Item gItemsInfo[] =
|
||||
.name = _("Oval Stone"),
|
||||
.price = (I_PRICE >= GEN_7) ? 2000 : 2100,
|
||||
.description = COMPOUND_STRING(
|
||||
"Makes a certain\n"
|
||||
"Pokémon evolve. It's\n"
|
||||
"shaped like an egg."),
|
||||
"Peculiar stone\n"
|
||||
"that evolves a\n"
|
||||
"certain Pokémon."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = EVO_HELD_ITEM_TYPE,
|
||||
.fieldUseFunc = EVO_HELD_ITEM_FIELD_FUNC,
|
||||
@ -4749,8 +4749,8 @@ const struct Item gItemsInfo[] =
|
||||
.holdEffect = HOLD_EFFECT_PLATE,
|
||||
.holdEffectParam = 20,
|
||||
.description = COMPOUND_STRING(
|
||||
"A stone tablet that\n"
|
||||
"boosts the power of\n"
|
||||
"A tablet that ups\n"
|
||||
"the power of\n"
|
||||
"Fairy-type moves."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
@ -4945,7 +4945,7 @@ const struct Item gItemsInfo[] =
|
||||
.holdEffect = HOLD_EFFECT_MEMORY,
|
||||
.holdEffectParam = 0,
|
||||
.description = COMPOUND_STRING(
|
||||
"A disc with Fighting\n"
|
||||
"Disc with Fighting\n"
|
||||
"type data. It swaps\n"
|
||||
"Silvally's type."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
@ -7053,9 +7053,9 @@ const struct Item gItemsInfo[] =
|
||||
.price = (I_PRICE >= GEN_7) ? 1000 : 10,
|
||||
.holdEffect = HOLD_EFFECT_QUICK_POWDER,
|
||||
.description = COMPOUND_STRING(
|
||||
"An item to be held\n"
|
||||
"by Ditto. This odd\n"
|
||||
"powder boosts Speed."),
|
||||
"A hold item that\n"
|
||||
"raises the Speed\n"
|
||||
"of Ditto."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -7132,9 +7132,9 @@ const struct Item gItemsInfo[] =
|
||||
.holdEffect = HOLD_EFFECT_ADAMANT_ORB,
|
||||
.holdEffectParam = 20,
|
||||
.description = COMPOUND_STRING(
|
||||
"Boosts the power of\n"
|
||||
"Dialga's Dragon and\n"
|
||||
"Steel-type moves."),
|
||||
"Powers up Dialga's\n"
|
||||
"Dragon and Steel-\n"
|
||||
"type moves."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -7150,9 +7150,9 @@ const struct Item gItemsInfo[] =
|
||||
.holdEffect = HOLD_EFFECT_LUSTROUS_ORB,
|
||||
.holdEffectParam = 20,
|
||||
.description = COMPOUND_STRING(
|
||||
"Boosts the power of\n"
|
||||
"Palkia's Dragon and\n"
|
||||
"Water-type moves."),
|
||||
"Powers up Palkia's\n"
|
||||
"Dragon and Water-\n"
|
||||
"type moves."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -7168,7 +7168,7 @@ const struct Item gItemsInfo[] =
|
||||
.holdEffect = HOLD_EFFECT_GRISEOUS_ORB,
|
||||
.holdEffectParam = 20,
|
||||
.description = COMPOUND_STRING(
|
||||
"Powers up Giratina's\n"
|
||||
"Boosts Giratina's\n"
|
||||
"Dragon and Ghost-\n"
|
||||
"type moves."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
@ -8107,9 +8107,9 @@ const struct Item gItemsInfo[] =
|
||||
.holdEffect = HOLD_EFFECT_CELL_BATTERY,
|
||||
.holdEffectParam = 0,
|
||||
.description = COMPOUND_STRING(
|
||||
"Raises Atk if the\n"
|
||||
"holder is hit by an\n"
|
||||
"Electric-type move."),
|
||||
"Raises Attack if\n"
|
||||
"the holder is hit by\n"
|
||||
"an Electric move."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -8454,8 +8454,8 @@ const struct Item gItemsInfo[] =
|
||||
.holdEffectParam = 10,
|
||||
.description = COMPOUND_STRING(
|
||||
"A headband that\n"
|
||||
"boosts the power of\n"
|
||||
"physical moves."),
|
||||
"boosts the power\n"
|
||||
"of physical moves."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -8525,9 +8525,9 @@ const struct Item gItemsInfo[] =
|
||||
.price = (I_PRICE >= GEN_9) ? 50000 : ((I_PRICE >= GEN_7) ? 4000 : 200),
|
||||
.holdEffect = HOLD_EFFECT_LIFE_ORB,
|
||||
.description = COMPOUND_STRING(
|
||||
"Boosts the power of\n"
|
||||
"moves at the cost\n"
|
||||
"of some HP per turn."),
|
||||
"Boosts move power\n"
|
||||
"but holder loses HP\n"
|
||||
"with each attack."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -8614,9 +8614,9 @@ const struct Item gItemsInfo[] =
|
||||
.price = (I_PRICE >= GEN_9) ? 20000 : ((I_PRICE >= GEN_7) ? 4000 : 200),
|
||||
.holdEffect = HOLD_EFFECT_IRON_BALL,
|
||||
.description = COMPOUND_STRING(
|
||||
"Cuts Speed and lets\n"
|
||||
"Flying-types be hit\n"
|
||||
"by Ground moves."),
|
||||
"Cuts Speed and\n"
|
||||
"becomes vulnerable\n"
|
||||
"to Ground moves."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -8663,9 +8663,9 @@ const struct Item gItemsInfo[] =
|
||||
.price = (I_PRICE >= GEN_9) ? 10000 : ((I_PRICE >= GEN_7) ? 4000 : 200),
|
||||
.holdEffect = HOLD_EFFECT_BLACK_SLUDGE,
|
||||
.description = COMPOUND_STRING(
|
||||
"Gradually restores\n"
|
||||
"HP of Poison-types.\n"
|
||||
"Damages others."),
|
||||
"Restores HP for\n"
|
||||
"Poison-types.\n"
|
||||
"Damages all others."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -8680,9 +8680,9 @@ const struct Item gItemsInfo[] =
|
||||
.price = (I_PRICE >= GEN_9) ? 10000 : ((I_PRICE >= GEN_7) ? 4000 : 200),
|
||||
.holdEffect = HOLD_EFFECT_GRIP_CLAW,
|
||||
.description = COMPOUND_STRING(
|
||||
"Makes binding moves\n"
|
||||
"used by the holder\n"
|
||||
"go on for 7 turns."),
|
||||
"A held item that\n"
|
||||
"extends binding\n"
|
||||
"moves like Wrap."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -8698,8 +8698,8 @@ const struct Item gItemsInfo[] =
|
||||
.holdEffect = HOLD_EFFECT_STICKY_BARB,
|
||||
.description = COMPOUND_STRING(
|
||||
"Damages the holder\n"
|
||||
"each turn. May latch\n"
|
||||
"on to foes."),
|
||||
"each turn. May\n"
|
||||
"latch on to foes."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -8714,9 +8714,9 @@ const struct Item gItemsInfo[] =
|
||||
.price = (I_PRICE >= GEN_9) ? 20000 : ((I_PRICE >= GEN_7) ? 4000 : 100),
|
||||
.holdEffect = HOLD_EFFECT_SHED_SHELL,
|
||||
.description = COMPOUND_STRING(
|
||||
"Enables the holder\n"
|
||||
"to switch out of\n"
|
||||
"battle without fail."),
|
||||
"Allows the holder\n"
|
||||
"to switch out\n"
|
||||
"without fail."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -8733,7 +8733,7 @@ const struct Item gItemsInfo[] =
|
||||
.holdEffectParam = 30,
|
||||
.description = COMPOUND_STRING(
|
||||
"A held item that\n"
|
||||
"boosts the power of\n"
|
||||
"ups the power of\n"
|
||||
"HP-stealing moves."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
@ -8837,9 +8837,9 @@ const struct Item gItemsInfo[] =
|
||||
.holdEffect = HOLD_EFFECT_AIR_BALLOON,
|
||||
.holdEffectParam = 0,
|
||||
.description = COMPOUND_STRING(
|
||||
"Elevates the holder\n"
|
||||
"in the air. If hit,\n"
|
||||
"this item will burst."),
|
||||
"Makes the holder\n"
|
||||
"float but bursts\n"
|
||||
"if hit by an attack."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -8873,9 +8873,9 @@ const struct Item gItemsInfo[] =
|
||||
.holdEffect = HOLD_EFFECT_RING_TARGET,
|
||||
.holdEffectParam = 0,
|
||||
.description = COMPOUND_STRING(
|
||||
"Moves that wouldn't\n"
|
||||
"have effect will\n"
|
||||
"land on its holder."),
|
||||
"Moves that usually\n"
|
||||
"have no effect will\n"
|
||||
"hit the holder."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -8927,9 +8927,9 @@ const struct Item gItemsInfo[] =
|
||||
.holdEffect = HOLD_EFFECT_WEAKNESS_POLICY,
|
||||
.holdEffectParam = 0,
|
||||
.description = COMPOUND_STRING(
|
||||
"If hit by a Super\n"
|
||||
"Effective move, ups\n"
|
||||
"Atk and Sp. Atk."),
|
||||
"If hit by a super-\n"
|
||||
"effective move,\n"
|
||||
"ups Atk and Sp. Atk."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -8980,9 +8980,9 @@ const struct Item gItemsInfo[] =
|
||||
.price = (I_PRICE >= GEN_9) ? 5000 : ((I_PRICE >= GEN_8) ? 4000 : 300),
|
||||
.holdEffect = HOLD_EFFECT_ADRENALINE_ORB,
|
||||
.description = COMPOUND_STRING(
|
||||
"Boosts Speed if the\n"
|
||||
"user is intimidated,\n"
|
||||
"but only one time."),
|
||||
"This orb boosts\n"
|
||||
"Speed if the holder\n"
|
||||
"is intimidated."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -13042,9 +13042,9 @@ const struct Item gItemsInfo[] =
|
||||
.price = 20000,
|
||||
.holdEffect = HOLD_EFFECT_COVERT_CLOAK,
|
||||
.description = COMPOUND_STRING(
|
||||
"Protects the holder\n"
|
||||
"from secondary\n"
|
||||
"move effects."),
|
||||
"Protects holder\n"
|
||||
"from additional\n"
|
||||
"effects of moves."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
@ -14009,11 +14009,11 @@ const struct Item gItemsInfo[] =
|
||||
.description = COMPOUND_STRING(
|
||||
#if B_X_ITEMS_BUFF >= GEN_7
|
||||
"Sharply raises\n"
|
||||
"offenses & defenses\n"
|
||||
"offense & defense\n"
|
||||
"during one battle."),
|
||||
#else
|
||||
"Raises offenses\n"
|
||||
"and defenses during\n"
|
||||
"Raises offense\n"
|
||||
"and defense during\n"
|
||||
"one battle."),
|
||||
#endif
|
||||
.pocket = POCKET_ITEMS,
|
||||
@ -14068,9 +14068,9 @@ const struct Item gItemsInfo[] =
|
||||
.name = _("Pokéshi Doll"),
|
||||
.price = 2000,
|
||||
.description = COMPOUND_STRING(
|
||||
"A wooden toy carved\n"
|
||||
"in the image of a\n"
|
||||
"Pokémon. Can be sold."),
|
||||
"A wooden toy\n"
|
||||
"resembling a Poké-.\n"
|
||||
"mon. Can be sold."),
|
||||
.pocket = POCKET_ITEMS,
|
||||
.type = ITEM_USE_BAG_MENU,
|
||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||
|
||||
@ -14198,8 +14198,8 @@ const struct MoveInfo gMovesInfo[MOVES_COUNT_DYNAMAX] =
|
||||
{
|
||||
.name = HANDLE_EXPANDED_MOVE_NAME("ParabolcChrg", "Parabolic Charge"),
|
||||
.description = COMPOUND_STRING(
|
||||
"Damages adjacent Pokémon and\n"
|
||||
"heals up by half of it."),
|
||||
"Damages adjacent Pokémon\n"
|
||||
"and heals up by half of it."),
|
||||
.effect = EFFECT_ABSORB,
|
||||
.power = B_UPDATED_MOVE_DATA >= GEN_7 ? 65 : 50,
|
||||
.type = TYPE_ELECTRIC,
|
||||
@ -16757,7 +16757,7 @@ const struct MoveInfo gMovesInfo[MOVES_COUNT_DYNAMAX] =
|
||||
.name = COMPOUND_STRING("Plasma Fists"),
|
||||
.description = COMPOUND_STRING(
|
||||
"Hits with electrical fists.\n"
|
||||
"Normal moves become Electric."),
|
||||
"Normal moves turn Electric."),
|
||||
.effect = EFFECT_PLASMA_FISTS,
|
||||
.power = 100,
|
||||
.type = TYPE_ELECTRIC,
|
||||
@ -17116,8 +17116,8 @@ const struct MoveInfo gMovesInfo[MOVES_COUNT_DYNAMAX] =
|
||||
{
|
||||
.name = HANDLE_EXPANDED_MOVE_NAME("DynamxCannon", "Dynamax Cannon"),
|
||||
.description = COMPOUND_STRING(
|
||||
"Fires a strong beam. Deals\n"
|
||||
"2x damage to Dynamaxed foes."),
|
||||
"Unleashes core energy.\n"
|
||||
"2x against Dynamaxed foes."),
|
||||
.effect = EFFECT_DYNAMAX_DOUBLE_DMG,
|
||||
.power = 100,
|
||||
.type = TYPE_DRAGON,
|
||||
@ -18637,8 +18637,8 @@ const struct MoveInfo gMovesInfo[MOVES_COUNT_DYNAMAX] =
|
||||
{
|
||||
.name = HANDLE_EXPANDED_MOVE_NAME("GlacialLance", "Glacial Lance"),
|
||||
.description = COMPOUND_STRING(
|
||||
"Strikes by hurling a blizzard-\n"
|
||||
"cloaked icicle lance at foes."),
|
||||
"Hurls a blizzard-cloaked\n"
|
||||
"icicle lance at foes."),
|
||||
.effect = EFFECT_HIT,
|
||||
.power = B_UPDATED_MOVE_DATA >= GEN_9 ? 120 : 130,
|
||||
.type = TYPE_ICE,
|
||||
@ -18659,8 +18659,8 @@ const struct MoveInfo gMovesInfo[MOVES_COUNT_DYNAMAX] =
|
||||
{
|
||||
.name = HANDLE_EXPANDED_MOVE_NAME("AstrlBarrage", "Astral Barrage"),
|
||||
.description = COMPOUND_STRING(
|
||||
"Strikes by sending a frightful\n"
|
||||
"amount of ghosts at foes."),
|
||||
"Sends a frightful amount\n"
|
||||
"of small ghosts at foes."),
|
||||
.effect = EFFECT_HIT,
|
||||
.power = 120,
|
||||
.type = TYPE_GHOST,
|
||||
@ -20381,8 +20381,8 @@ const struct MoveInfo gMovesInfo[MOVES_COUNT_DYNAMAX] =
|
||||
{
|
||||
.name = COMPOUND_STRING("Electro Shot"),
|
||||
.description = COMPOUND_STRING(
|
||||
"Absorbs electricity in one turn,\n"
|
||||
"then attacks next turn."),
|
||||
"Gathers electricity, then\n"
|
||||
"fires a high-voltage shot."),
|
||||
.effect = EFFECT_TWO_TURNS_ATTACK,
|
||||
.power = 130,
|
||||
.type = TYPE_ELECTRIC,
|
||||
@ -20404,8 +20404,8 @@ const struct MoveInfo gMovesInfo[MOVES_COUNT_DYNAMAX] =
|
||||
{
|
||||
.name = HANDLE_EXPANDED_MOVE_NAME("TeraStarstrm", "Tera Starstorm"),
|
||||
.description = COMPOUND_STRING(
|
||||
"Damages all opponents if user is\n"
|
||||
"Stellar form Terapagos."),
|
||||
"In Terapagos's Stellar\n"
|
||||
"Form, it hits all foes."),
|
||||
.effect = EFFECT_TERA_STARSTORM,
|
||||
.power = 120,
|
||||
.type = TYPE_NORMAL,
|
||||
@ -20552,8 +20552,8 @@ const struct MoveInfo gMovesInfo[MOVES_COUNT_DYNAMAX] =
|
||||
{
|
||||
.name = HANDLE_EXPANDED_MOVE_NAME("AllurngVoice", "Alluring Voice"),
|
||||
.description = COMPOUND_STRING(
|
||||
"Confuses the target if their\n"
|
||||
"stats were boosted this turn."),
|
||||
"Confuses foe if its stats\n"
|
||||
"were boosted this turn."),
|
||||
.effect = EFFECT_HIT,
|
||||
.power = 80,
|
||||
.type = TYPE_FAIRY,
|
||||
|
||||
@ -3990,8 +3990,8 @@ const struct SpeciesInfo gSpeciesInfoGen2[] =
|
||||
.weight = 474,
|
||||
.description = COMPOUND_STRING(
|
||||
"A recent study uncovered that the\n"
|
||||
"number of segments a\n"
|
||||
"Dudunsparce's body has is determined by the\n"
|
||||
"number of segments a Dudunsparce's\n"
|
||||
"body has is determined by the\n"
|
||||
"Pokémon's genes."),
|
||||
.pokemonScale = 356,
|
||||
.pokemonOffset = 17,
|
||||
|
||||
@ -4570,9 +4570,9 @@ const struct SpeciesInfo gSpeciesInfoGen3[] =
|
||||
.weight = 315,
|
||||
.description = COMPOUND_STRING(
|
||||
"It uses its amped-up willpower to create\n"
|
||||
"additional arms for itself. The more it has\n"
|
||||
"trained its spirit, the more realistic and\n"
|
||||
"dexterous these self-created arms become."),
|
||||
"additional arms for itself. The more it\n"
|
||||
"has trained its spirit, the more realistic\n"
|
||||
"and dexterous these arms become."),
|
||||
.pokemonScale = 298,
|
||||
.pokemonOffset = 5,
|
||||
.trainerScale = 256,
|
||||
|
||||
@ -561,10 +561,10 @@ const struct SpeciesInfo gSpeciesInfoGen4[] =
|
||||
.height = 17,
|
||||
.weight = 845,
|
||||
.description = COMPOUND_STRING(
|
||||
"The three horns that extend from its beak\n"
|
||||
"attest to its power. It avoids unnecessary\n"
|
||||
"disputes, but it will decimate anything\n"
|
||||
"that threatens its pride."),
|
||||
"The three horns that extend from its\n"
|
||||
"beak attest to its power. It avoids\n"
|
||||
"unnecessary disputes, but it will decimate\n"
|
||||
"anything that threatens its pride."),
|
||||
.pokemonScale = 259,
|
||||
.pokemonOffset = 0,
|
||||
.trainerScale = 290,
|
||||
@ -4873,10 +4873,10 @@ const struct SpeciesInfo gSpeciesInfoGen4[] =
|
||||
.height = 3,
|
||||
.weight = 3,
|
||||
.description = COMPOUND_STRING(
|
||||
"If the convection microwave oven is not\n"
|
||||
"working properly, then the Rotom inhabiting\n"
|
||||
"it will become lethargic. It will gleefully\n"
|
||||
"burn your favorite outfit in mischief."),
|
||||
"If the convection microwave oven is\n"
|
||||
"not working properly, then the Rotom\n"
|
||||
"inhabiting it will become lethargic. It\n"
|
||||
"makes mischief by turning up the heat."),
|
||||
.pokemonScale = 530,
|
||||
.pokemonOffset = 13,
|
||||
.trainerScale = 256,
|
||||
|
||||
@ -10333,10 +10333,10 @@ const struct SpeciesInfo gSpeciesInfoGen5[] =
|
||||
.height = 14,
|
||||
.weight = 580,
|
||||
.description = COMPOUND_STRING(
|
||||
"It draws in air through its tail, transforms\n"
|
||||
"it into fire, and uses it like a tongue.\n"
|
||||
"They burn through Durant's steel bodies\n"
|
||||
"and consume their insides."),
|
||||
"It draws in air through its tail,\n"
|
||||
"transforms it into fire, and uses it like\n"
|
||||
"a tongue. They burn through Durant's steel\n"
|
||||
"bodies and consume their insides."),
|
||||
.pokemonScale = 265,
|
||||
.pokemonOffset = 2,
|
||||
.trainerScale = 262,
|
||||
@ -11154,10 +11154,10 @@ const struct SpeciesInfo gSpeciesInfoGen5[] =
|
||||
.height = 30,
|
||||
.weight = 610,
|
||||
.description = COMPOUND_STRING(
|
||||
"It pulverizes foes into\n"
|
||||
"nothingness with showers of devastatingly\n"
|
||||
"powerful lightning bolts launched from\n"
|
||||
"the string of orbs on its tail."),
|
||||
"It pulverizes foes into nothingness\n"
|
||||
"with showers of devastatingly\n"
|
||||
"powerful lightning bolts launched\n"
|
||||
"from the string of orbs on its tail."),
|
||||
.pokemonScale = 268,
|
||||
.pokemonOffset = 2,
|
||||
.trainerScale = 271,
|
||||
@ -11348,9 +11348,9 @@ const struct SpeciesInfo gSpeciesInfoGen5[] =
|
||||
.height = 15,
|
||||
.weight = 680,
|
||||
.description = COMPOUND_STRING(
|
||||
"The energy that comes pouring from its tail\n"
|
||||
"increases the nutrition in the soil, making\n"
|
||||
"crops grow to great size. It has been\n"
|
||||
"The energy that comes pouring from its\n"
|
||||
"tail increases the nutrition in the soil,\n"
|
||||
"granting bountiful crops. It has been\n"
|
||||
"hailed as “The Guardian of the Fields.”"),
|
||||
.pokemonScale = 268,
|
||||
.pokemonOffset = 2,
|
||||
|
||||
@ -640,11 +640,7 @@ const struct SpeciesInfo gSpeciesInfoGen6[] =
|
||||
.categoryName = _("Ninja"),
|
||||
.height = 15,
|
||||
.weight = 400,
|
||||
.description = COMPOUND_STRING(
|
||||
"It appears and vanishes with a ninja's\n"
|
||||
"grace. It toys with its enemies using swift\n"
|
||||
"movements, while slicing them with throwing\n"
|
||||
"stars made of compressed water."),
|
||||
.description = gGreninjaPokedexText,
|
||||
.pokemonScale = 268,
|
||||
.pokemonOffset = 2,
|
||||
.trainerScale = 271,
|
||||
@ -1806,8 +1802,8 @@ const struct SpeciesInfo gSpeciesInfoGen6[] =
|
||||
{
|
||||
FLORGES_MISC_INFO(Red, 0),
|
||||
.description = COMPOUND_STRING(
|
||||
"This Pokémon creates an\n"
|
||||
"impressive flower garden in its territory. It\n"
|
||||
"This Pokémon creates an impressive\n"
|
||||
"flower garden in its territory. It\n"
|
||||
"draws forth the power of the red\n"
|
||||
"flowers around its neck."),
|
||||
},
|
||||
@ -4213,8 +4209,8 @@ const struct SpeciesInfo gSpeciesInfoGen6[] =
|
||||
.height = 17,
|
||||
.weight = 3341,
|
||||
.description = COMPOUND_STRING(
|
||||
"It loathes solitude and is\n"
|
||||
"extremely clingy-it will fume and run riot if\n"
|
||||
"It loathes solitude and is extremely\n"
|
||||
"clingy--it will fume and run riot if\n"
|
||||
"those dearest to it ever leave its\n"
|
||||
"side."),
|
||||
.pokemonScale = 261,
|
||||
@ -5239,9 +5235,9 @@ const struct SpeciesInfo gSpeciesInfoGen6[] =
|
||||
.weight = 850,
|
||||
.description = COMPOUND_STRING(
|
||||
"They fly around on moonless nights and\n"
|
||||
"attack careless prey. The ultrasonic waves\n"
|
||||
"it emits from its ears can reduce a large\n"
|
||||
"boulder to pebbles."),
|
||||
"attack careless prey. The ultrasonic\n"
|
||||
"waves it emits from its ears can reduce\n"
|
||||
"a large boulder to pebbles."),
|
||||
.pokemonScale = 268,
|
||||
.pokemonOffset = 2,
|
||||
.trainerScale = 271,
|
||||
|
||||
@ -3823,8 +3823,8 @@ const struct SpeciesInfo gSpeciesInfoGen7[] =
|
||||
.height = 5,
|
||||
.weight = 700,
|
||||
.description = COMPOUND_STRING(
|
||||
"It takes control of anyone who puts a hand\n"
|
||||
"in its mouth, to add to the accumulation\n"
|
||||
"It takes control of anyone who puts a\n"
|
||||
"hand in its mouth, to add to the pile\n"
|
||||
"of its sand-mound body. This Pokémon\n"
|
||||
"embodies the grudges of the departed."),
|
||||
.pokemonScale = 432,
|
||||
@ -6208,10 +6208,10 @@ const struct SpeciesInfo gSpeciesInfoGen7[] =
|
||||
.height = 38,
|
||||
.weight = 4600,
|
||||
.description = COMPOUND_STRING(
|
||||
"This is its form while it is\n"
|
||||
"devouring the light of Solgaleo. It pounces\n"
|
||||
"on foes and then slashes them with\n"
|
||||
"the claws on its four limbs and back."),
|
||||
"This is its form while it is devouring\n"
|
||||
"the light of Solgaleo. It pounces on\n"
|
||||
"foes and then slashes them with the\n"
|
||||
"claws on its four limbs and back."),
|
||||
.pokemonScale = 256,
|
||||
.pokemonOffset = 3,
|
||||
.trainerScale = 369,
|
||||
@ -6974,9 +6974,9 @@ const struct SpeciesInfo gSpeciesInfoGen7[] =
|
||||
.height = 25,
|
||||
.weight = 800,
|
||||
.description = COMPOUND_STRING(
|
||||
"Revered long ago for its capacity to create\n"
|
||||
"iron from nothing, for some reason it has\n"
|
||||
"come back to life after 3,000 years."),
|
||||
"Revered long ago for its capacity to\n"
|
||||
"create iron from nothing, for some reason\n"
|
||||
"it has come back to life after 3,000 years."),
|
||||
.pokemonScale = 257,
|
||||
.pokemonOffset = 10,
|
||||
.trainerScale = 423,
|
||||
|
||||
@ -885,8 +885,8 @@ const struct SpeciesInfo gSpeciesInfoGen8[] =
|
||||
.description = COMPOUND_STRING(
|
||||
"It will bravely challenge any opponent,\n"
|
||||
"no matter how powerful. This Pokémon\n"
|
||||
"benefits from every battle--even a defeat\n"
|
||||
"increases its strength a bit."),
|
||||
"benefits from every battle--even a\n"
|
||||
"defeat increases its strength a bit."),
|
||||
.pokemonScale = 682,
|
||||
.pokemonOffset = 24,
|
||||
.trainerScale = 256,
|
||||
@ -1318,8 +1318,8 @@ const struct SpeciesInfo gSpeciesInfoGen8[] =
|
||||
.height = 140,
|
||||
.weight = 0,
|
||||
.description = COMPOUND_STRING(
|
||||
"Its brain has grown to a\n"
|
||||
"gargantuan size, as has the rest of its body.\n"
|
||||
"Its brain has grown to a gargantuan\n"
|
||||
"size, as has the rest of its body.\n"
|
||||
"This Pokémon's intellect and\n"
|
||||
"psychic abilities are overpowering."),
|
||||
.pokemonScale = 491,
|
||||
@ -3621,9 +3621,9 @@ const struct SpeciesInfo gSpeciesInfoGen8[] =
|
||||
.weight = 0,
|
||||
.description = COMPOUND_STRING(
|
||||
"The heat that comes off a\n"
|
||||
"Gigantamax Centiskorch may destabilize air\n"
|
||||
"currents. Sometimes it can even\n"
|
||||
"cause storms."),
|
||||
"Gigantamax Centiskorch may\n"
|
||||
"destabilize air currents. Sometimes\n"
|
||||
"it can even cause storms."),
|
||||
.pokemonScale = 275,
|
||||
.pokemonOffset = 7,
|
||||
.trainerScale = 256,
|
||||
@ -4294,9 +4294,9 @@ const struct SpeciesInfo gSpeciesInfoGen8[] =
|
||||
.weight = 55,
|
||||
.description = COMPOUND_STRING(
|
||||
"Through its nose, it sucks in the\n"
|
||||
"emanations produced by people and Pokémon\n"
|
||||
"when they feel annoyed. It thrives off\n"
|
||||
"this negative energy."),
|
||||
"emanations produced by people and\n"
|
||||
"Pokémon when they feel annoyed. It\n"
|
||||
"thrives off this negative energy."),
|
||||
.pokemonScale = 491,
|
||||
.pokemonOffset = 12,
|
||||
.trainerScale = 256,
|
||||
@ -5577,9 +5577,9 @@ const struct SpeciesInfo gSpeciesInfoGen8[] =
|
||||
.height = 230,
|
||||
.weight = 0,
|
||||
.description = COMPOUND_STRING(
|
||||
"After this Pokémon has\n"
|
||||
"Gigantamaxed, its massive nose can utterly\n"
|
||||
"demolish large structures with a single\n"
|
||||
"After this Pokémon has Gigantamaxed,\n"
|
||||
"its massive nose can utterly demolish\n"
|
||||
"large structures with a single\n"
|
||||
"smashing blow."),
|
||||
.pokemonScale = 275,
|
||||
.pokemonOffset = 7,
|
||||
@ -6255,8 +6255,8 @@ const struct SpeciesInfo gSpeciesInfoGen8[] =
|
||||
.weight = 1100,
|
||||
.description = COMPOUND_STRING(
|
||||
"Known as a legendary hero, this Pokémon\n"
|
||||
"absorbs metal particles, transforming them\n"
|
||||
"into a weapon it uses to battle."),
|
||||
"absorbs metal particles, transforming\n"
|
||||
"them into a weapon it uses to battle."),
|
||||
.pokemonScale = 275,
|
||||
.pokemonOffset = 7,
|
||||
.trainerScale = 256,
|
||||
|
||||
@ -1019,8 +1019,8 @@ const struct SpeciesInfo gSpeciesInfoGen9[] =
|
||||
.height = 3,
|
||||
.weight = 25,
|
||||
.description = COMPOUND_STRING(
|
||||
"The pads of its paws are\n"
|
||||
"electricity-discharging organs. Pawmi fires\n"
|
||||
"The pads of its paws are electricity-\n"
|
||||
"discharging organs. Pawmi fires\n"
|
||||
"electricity from its forepaws while\n"
|
||||
"standing unsteadily on its hind legs."),
|
||||
.pokemonScale = 356,
|
||||
@ -3939,8 +3939,8 @@ const struct SpeciesInfo gSpeciesInfoGen9[] =
|
||||
.height = 13,
|
||||
.weight = 602,
|
||||
.description = COMPOUND_STRING(
|
||||
"This Pokémon changes its\n"
|
||||
"appearance if it hears its allies calling for\n"
|
||||
"This Pokémon changes its appearance\n"
|
||||
"if it hears its allies calling for\n"
|
||||
"help. Palafin will never show\n"
|
||||
"anybody its moment of transformation."),
|
||||
.pokemonScale = 356,
|
||||
@ -4002,8 +4002,8 @@ const struct SpeciesInfo gSpeciesInfoGen9[] =
|
||||
.weight = 974,
|
||||
.description = COMPOUND_STRING(
|
||||
"This Pokémon's ancient genes have\n"
|
||||
"awakened. It is now so\n"
|
||||
"extraordinarily strong that it can easily lift a\n"
|
||||
"awakened. It is now so extraordinarily\n"
|
||||
"strong that it can easily lift a\n"
|
||||
"cruise ship with one fin."),
|
||||
.pokemonScale = 356,
|
||||
.pokemonOffset = 17,
|
||||
|
||||
@ -73,9 +73,9 @@ const u8 gGenesectPokedexText[] = _(
|
||||
// Gen 6 families
|
||||
const u8 gGreninjaPokedexText[] = _(
|
||||
"It appears and vanishes with a ninja's\n"
|
||||
"grace. It toys with its enemies using swift\n"
|
||||
"movements, while slicing them with throwing\n"
|
||||
"stars made of compressed water.");
|
||||
"grace. It toys with its enemies using\n"
|
||||
"swift movements, while slicing them with\n"
|
||||
"throwing stars made of compressed water.");
|
||||
|
||||
const u8 gScatterbugPokedexText[] = _(
|
||||
"When under attack from bird Pokémon,\n"
|
||||
@ -207,7 +207,7 @@ const u8 gKommoOPokedexText[] = _(
|
||||
// Gen 8 families
|
||||
const u8 gAlcremieVanillaCreamPokedexText[] = _(
|
||||
"If Alcremie is content, the secreted cream\n"
|
||||
"from its hands becomes sweeter and richer."
|
||||
"from its hands becomes sweeter and richer.\n"
|
||||
"When it trusts a Trainer, it will treat\n"
|
||||
"them to berries it's decorated with cream.");
|
||||
|
||||
@ -279,8 +279,8 @@ const u8 gOgerponWellspringMaskPokedexText[] = _(
|
||||
|
||||
const u8 gOgerponHearthflameMaskPokedexText[] = _(
|
||||
"This form is the most aggressive,\n"
|
||||
"bombarding enemies with the\n"
|
||||
"intensity of flames blazing within a hearth.");
|
||||
"bombarding enemies with the intensity\n"
|
||||
"of flames blazing within a hearth.");
|
||||
|
||||
const u8 gOgerponCornerstoneMaskPokedexText[] = _(
|
||||
"In this form, it draws on the power\n"
|
||||
|
||||
51
test/text.c
51
test/text.c
@ -79,6 +79,18 @@ TEST("Move names fit on Move Relearner Screen")
|
||||
EXPECT_LE(GetStringWidth(fontId, gMovesInfo[move].name, 0), widthPx);
|
||||
}
|
||||
|
||||
TEST("Move descriptions fit on Pokemon Summary Screen")
|
||||
{
|
||||
u32 i;
|
||||
const u32 fontId = FONT_NORMAL, widthPx = 152;
|
||||
u32 move = MOVE_NONE;
|
||||
for (i = 1; i < MOVES_COUNT; i++)
|
||||
{
|
||||
PARAMETRIZE_LABEL("%S", gMovesInfo[i].description) { move = i; }
|
||||
}
|
||||
EXPECT_LE(GetStringWidth(fontId, gMovesInfo[move].description, 0), widthPx);
|
||||
}
|
||||
|
||||
TEST("Item names fit on Bag Screen (list)")
|
||||
{
|
||||
u32 i;
|
||||
@ -272,6 +284,18 @@ TEST("Item names fit on Shop Screen")
|
||||
EXPECT_LE(GetStringWidth(fontId, gItemsInfo[item].name, 0), widthPx);
|
||||
}
|
||||
|
||||
TEST("Item descriptions fit on Bag and Shop Screen")
|
||||
{
|
||||
u32 i;
|
||||
const u32 fontId = FONT_NORMAL, widthPx = 102;
|
||||
u32 item = ITEM_NONE;
|
||||
for (i = 1; i < ITEMS_COUNT; i++)
|
||||
{
|
||||
PARAMETRIZE_LABEL("%S", gItemsInfo[i].description) { item = i; }
|
||||
}
|
||||
EXPECT_LE(GetStringWidth(fontId, gItemsInfo[item].description, 0), widthPx);
|
||||
}
|
||||
|
||||
TEST("Species names fit on Battle Screen HP box")
|
||||
{
|
||||
u32 i, genderWidthPx;
|
||||
@ -520,6 +544,21 @@ TEST("Species names fit on Battle Screen HP box for vanilla mons with the defaul
|
||||
EXPECT_LE(GetStringWidth(fontId, gSpeciesInfo[species].speciesName, 0), widthPx);
|
||||
}
|
||||
|
||||
TEST("Species dex entries fit on Pokedex Screen")
|
||||
{
|
||||
u32 i;
|
||||
const u32 fontId = FONT_NORMAL, widthPx = 224;
|
||||
u32 species = SPECIES_NONE;
|
||||
for (i = 1; i < NUM_SPECIES; i++)
|
||||
{
|
||||
if (IsSpeciesEnabled(i))
|
||||
{
|
||||
PARAMETRIZE_LABEL("%S", gSpeciesInfo[i].description) { species = i; }
|
||||
}
|
||||
}
|
||||
EXPECT_LE(GetStringWidth(fontId, gSpeciesInfo[species].description, 0), widthPx);
|
||||
}
|
||||
|
||||
TEST("Ability names fit on Pokemon Summary Screen")
|
||||
{
|
||||
u32 i;
|
||||
@ -544,6 +583,18 @@ TEST("Ability names fit on Ability Pop-Up")
|
||||
EXPECT_LE(GetStringWidth(fontId, gAbilitiesInfo[ability].name, 0), widthPx);
|
||||
}
|
||||
|
||||
TEST("Ability descriptions fit on Pokemon Summary Screen")
|
||||
{
|
||||
u32 i;
|
||||
const u32 fontId = FONT_NORMAL, widthPx = 146;
|
||||
u32 ability = ABILITY_NONE;
|
||||
for (i = 1; i < ABILITIES_COUNT; i++)
|
||||
{
|
||||
PARAMETRIZE_LABEL("%S", gAbilitiesInfo[i].description) { ability = i; }
|
||||
}
|
||||
EXPECT_LE(GetStringWidth(fontId, gAbilitiesInfo[ability].description, 0), widthPx);
|
||||
}
|
||||
|
||||
TEST("Type names fit on Battle Screen")
|
||||
{
|
||||
u32 i;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user