Use designated initializers for gTypeNames

This commit is contained in:
Marcus Huderle 2021-04-12 17:33:20 -05:00 committed by huderlem
parent ed68de26ad
commit e92d2005c4

View File

@ -434,24 +434,24 @@ const u8 gTypeEffectiveness[336] =
const u8 gTypeNames[NUMBER_OF_MON_TYPES][TYPE_NAME_LENGTH + 1] =
{
_("NORMAL"),
_("FIGHT"),
_("FLYING"),
_("POISON"),
_("GROUND"),
_("ROCK"),
_("BUG"),
_("GHOST"),
_("STEEL"),
_("???"),
_("FIRE"),
_("WATER"),
_("GRASS"),
_("ELECTR"),
_("PSYCHC"),
_("ICE"),
_("DRAGON"),
_("DARK"),
[TYPE_NORMAL] = _("NORMAL"),
[TYPE_FIGHTING] = _("FIGHT"),
[TYPE_FLYING] = _("FLYING"),
[TYPE_POISON] = _("POISON"),
[TYPE_GROUND] = _("GROUND"),
[TYPE_ROCK] = _("ROCK"),
[TYPE_BUG] = _("BUG"),
[TYPE_GHOST] = _("GHOST"),
[TYPE_STEEL] = _("STEEL"),
[TYPE_MYSTERY] = _("???"),
[TYPE_FIRE] = _("FIRE"),
[TYPE_WATER] = _("WATER"),
[TYPE_GRASS] = _("GRASS"),
[TYPE_ELECTRIC] = _("ELECTR"),
[TYPE_PSYCHIC] = _("PSYCHC"),
[TYPE_ICE] = _("ICE"),
[TYPE_DRAGON] = _("DRAGON"),
[TYPE_DARK] = _("DARK"),
};
// This is a factor in how much money you get for beating a trainer.