diff options
author | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2020-07-03 21:35:59 -0400 |
---|---|---|
committer | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2020-07-03 21:35:59 -0400 |
commit | 4bf7e4f4fb033085f9c6819a116b131e62e15ee9 (patch) | |
tree | a94e2a56ca33d7d18637948bc8b49558f44bece2 /src | |
parent | 7cb48a704a5f3783577bd85a85a802213e3d562c (diff) |
pokemon_summary_screen.c, part 11.
Diffstat (limited to 'src')
-rw-r--r-- | src/pokemon_summary_screen.c | 57 |
1 files changed, 33 insertions, 24 deletions
diff --git a/src/pokemon_summary_screen.c b/src/pokemon_summary_screen.c index ec42eb65c..a3015ca85 100644 --- a/src/pokemon_summary_screen.c +++ b/src/pokemon_summary_screen.c @@ -28,6 +28,8 @@ #include "constants/battle.h" #include "event_data.h" #include "trainer_pokemon_sprites.h" +#include "battle_anim.h" +#include "pokeball.h" extern void sub_8138B8C(struct Pokemon * mon); void sub_8135C34(void); @@ -141,20 +143,12 @@ struct PokemonSummaryScreenData { bool32 isEnemyParty; /* 0x3024 */ struct PokeSummary { - // u8 ALIGNED(4) unk3028[POKEMON_NAME_LENGTH]; - // u8 ALIGNED(4) unk3034[POKEMON_NAME_LENGTH + 1]; - - // u8 ALIGNED(4) unk3040[OT_NAME_LENGTH + 1]; - // u8 ALIGNED(4) unk3048[2][OT_NAME_LENGTH + 1]; - u8 ALIGNED(4) unk3028[POKEMON_NAME_LENGTH]; u8 ALIGNED(4) unk3034[POKEMON_NAME_LENGTH + 1]; u8 ALIGNED(4) unk3040[12]; u8 ALIGNED(4) unk304C[2][12]; u8 ALIGNED(4) unk3064[5]; - //u8 ALIGNED(4) unk3060[7]; - //u8 ALIGNED(4) unk3068[16]; u8 ALIGNED(4) unk306C[7]; u8 ALIGNED(4) unk3074[ITEM_NAME_LENGTH + 1]; @@ -175,22 +169,6 @@ struct PokemonSummaryScreenData { u8 ALIGNED(4) unk31BC[13]; u8 ALIGNED(4) unk31CC[20]; u8 ALIGNED(4) pad31E0[0x20]; - - // u8 ALIGNED(4) unk3090[9]; - // u8 ALIGNED(4) unk309C[5][5]; - - // u8 ALIGNED(4) unk30AC[5][11]; - // u8 ALIGNED(4) unk30E4[5][11]; - // u8 ALIGNED(4) unk311C[5][13]; - // u8 ALIGNED(4) pssd4[5][5]; - // u8 ALIGNED(4) pssd5[5][5]; - - // u8 ALIGNED(4) pssd6[9]; - // u8 ALIGNED(4) pssd7[9]; - - // u8 ALIGNED(4) pssd8[13]; - // u8 ALIGNED(4) pssd9[20]; - // u8 ALIGNED(4) tempPadRemoveLater[0x2c]; } summary; u8 ALIGNED(4) isEgg; /* 0x3200 */ @@ -3513,3 +3491,34 @@ void sub_8139AAC(u16 spriteId) gSprites[spriteId].callback = sub_8139768; } + +void sub_8139C44(u8 invisible) +{ + gSprites[gMonSummaryScreen->unk3010].invisible = invisible; +} + +void sub_8139C80(void) +{ + FreeAndDestroyMonPicSprite(gMonSummaryScreen->unk3010); + FREE_AND_SET_NULL(gUnknown_203B170); +} + +void sub_8139CB0(void) +{ + u16 ballItemId; + u8 ballId; + + if (gMonSummaryScreen->isEgg == 0) + ballItemId = GetMonData(&gMonSummaryScreen->currentMon, MON_DATA_POKEBALL); + else + ballItemId = 0; + + ballId = ItemIdToBallId(ballItemId); + LoadBallGfx(ballId); + + gMonSummaryScreen->unk300C = CreateSprite(&gBallSpriteTemplates[ballId], 106, 88, 0); + gSprites[gMonSummaryScreen->unk300C].callback = SpriteCallbackDummy; + gSprites[gMonSummaryScreen->unk300C].oam.priority = 0; + + sub_8139D54(1); +} |