add missing tv sprite in frlg pokecenter (#9348)

This commit is contained in:
FosterProgramming 2026-02-28 16:37:59 +01:00 committed by GitHub
parent 885180ff8b
commit 15527c5028
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 34 additions and 10 deletions

View File

@ -10,10 +10,10 @@ JASC-PAL
255 0 0
255 123 123
255 255 255
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
82 82 106
123 123 123
255 255 255
189 230 255
164 197 230
156 189 213
90 131 180

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

View File

@ -276,6 +276,7 @@ static const u32 sPokeballGlow_Gfx[] = INCBIN_U32("graphics/field_effects/pics/p
static const u16 sPokeballGlow_Pal[16] = INCBIN_U16("graphics/field_effects/palettes/pokeball_glow.gbapal");
static const u32 sPokecenterMonitor0_Gfx[] = INCBIN_U32("graphics/field_effects/pics/pokecenter_monitor/0.4bpp");
static const u32 sPokecenterMonitor1_Gfx[] = INCBIN_U32("graphics/field_effects/pics/pokecenter_monitor/1.4bpp");
static const u16 sPokecenterMonitor_Gfx_Frlg[] = INCBIN_U16("graphics/field_effects/pics/pokecenter_monitor/frlg.4bpp");
static const u32 sHofMonitorBig_Gfx[] = INCBIN_U32("graphics/field_effects/pics/hof_monitor_big.4bpp");
static const u8 sHofMonitorSmall_Gfx[] = INCBIN_U8("graphics/field_effects/pics/hof_monitor_small.4bpp");
static const u16 sHofMonitor_Pal[16] = INCBIN_U16("graphics/field_effects/palettes/hof_monitor.gbapal");
@ -427,6 +428,13 @@ static const struct SpriteFrameImage sPicTable_PokecenterMonitor[] =
obj_frame_tiles(sPokecenterMonitor1_Gfx)
};
static const struct SpriteFrameImage sPicTable_PokecenterMonitor_Frlg[] = {
{sPokecenterMonitor_Gfx_Frlg + 0x000, 0x100},
{sPokecenterMonitor_Gfx_Frlg + 0x080, 0x100},
{sPokecenterMonitor_Gfx_Frlg + 0x100, 0x100},
{sPokecenterMonitor_Gfx_Frlg + 0x180, 0x100}
};
static const struct SpriteFrameImage sPicTable_HofMonitorBig[] =
{
obj_frame_tiles(sHofMonitorBig_Gfx)
@ -598,6 +606,15 @@ static const struct SpriteTemplate sSpriteTemplate_PokecenterMonitor =
.callback = SpriteCB_PokecenterMonitor
};
static const struct SpriteTemplate sSpriteTemplate_PokecenterMonitor_FrLg = {
.tileTag = TAG_NONE,
.paletteTag = FLDEFF_PAL_TAG_POKEBALL_GLOW,
.oam = &sOam_32x16,
.anims = sAnims_Flicker,
.images = sPicTable_PokecenterMonitor_Frlg,
.callback = SpriteCB_PokecenterMonitor
};
static const struct SpriteTemplate sSpriteTemplate_HofMonitorBig =
{
.tileTag = TAG_NONE,
@ -1127,7 +1144,7 @@ static void PokecenterHealEffect_WaitForBallPlacement(struct Task *task)
{
if (gSprites[task->tBallSpriteId].sState > 1)
{
gSprites[task->tMonitorSpriteId].sState++;
gSprites[task->tMonitorSpriteId].data[0]++;
task->tState++;
}
}
@ -1359,11 +1376,18 @@ static u8 CreatePokecenterMonitorSprite(s16 x, s16 y)
{
u8 spriteId;
struct Sprite *sprite;
spriteId = CreateSpriteAtEnd(&sSpriteTemplate_PokecenterMonitor, x, y, 0);
if (IS_FRLG)
{
spriteId = CreateSpriteAtEnd(&sSpriteTemplate_PokecenterMonitor_FrLg, x + 4, y, 0);
}
else
{
spriteId = CreateSpriteAtEnd(&sSpriteTemplate_PokecenterMonitor, x, y, 0);
SetSubspriteTables(&gSprites[spriteId], &sSubspriteTable_PokecenterMonitor);
}
sprite = &gSprites[spriteId];
sprite->oam.priority = 2;
sprite->invisible = TRUE;
SetSubspriteTables(sprite, &sSubspriteTable_PokecenterMonitor);
return spriteId;
}