I was looking through the code from a Pokemon pearl de-compilation and every item in the game was put in a struct but with the item name in brackets followed by its' properties. What is this way of using structs called ?
[ITEM_MASTER_BALL] =
{
.name = _("MASTER BALL"),
.itemId = ITEM_MASTER_BALL,
.price = 0,
.description = sMasterBallDesc,
.pocket = POCKET_POKE_BALLS,
.type = ITEM_MASTER_BALL - FIRST_BALL,
.battleUsage = ITEM_B_USE_OTHER,
.battleUseFunc = ItemUseInBattle_PokeBall,
.secondaryId = ITEM_MASTER_BALL - FIRST_BALL,
},