diff --git a/src/pokemon_storage_system.c b/src/pokemon_storage_system.c index 91f19b8d0e..2fce20a6c0 100644 --- a/src/pokemon_storage_system.c +++ b/src/pokemon_storage_system.c @@ -10124,4 +10124,35 @@ void UpdateSpeciesSpritePSS(struct BoxPokemon *boxMon) sStorage->displayMonSpecies = species; sStorage->displayMonPalette = GetMonSpritePalFromSpeciesAndPersonality(species, otId, pid); LoadDisplayMonGfx(species, pid); + + // Recreate icon sprite + //DestroyPartyMonIcon(sCursorPosition); + if (sInPartyMenu) + { + /* + CreatePartyMonsSprites(TRUE); + if (GetMonData(&boxMon, MON_DATA_HELD_ITEM) == ITEM_NONE) + SetPartyMonIconObjMode(sCursorPosition, 1); + else + SetBoxMonIconObjMode(sCursorPosition, 0); + */ + } + else + { + DestroyBoxMonIcon(sStorage->boxMonsSprites[sCursorPosition]); + CreateBoxMonIconAtPos(sCursorPosition); + SetBoxMonIconObjMode(sCursorPosition, GetMonData(boxMon, MON_DATA_HELD_ITEM) == ITEM_NONE); + + } + // + /* + sStorage->boxMonsSprites[sCursorPosition] = CreateMonIconSprite(sStorage->boxSpecies[sCursorPosition], + sStorage->boxPersonalities[sCursorPosition], + x, y, 2, subpriority + sStorage->boxMonsSprites[sCursorPosition] = CreateMonIconSprite(species, personality, x, y, 2, 19 - (sCursorPosition % IN_BOX_COLUMNS)); + */ + //DestroyBoxMonIcon(sStorage->partySprites[i]) + //sStorage->partySprites[0] = CreateMonIconSprite(species, personality, 104, 64, 1, 12); + //DestroyBoxMonIconAtPosition(boxPosition); + }