From 6702a58f7c1e72f9de5c77e61b6143462823ad68 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Sun, 13 Jul 2025 13:02:58 -0400 Subject: [PATCH] Convert substitute back sprite data to png --- graphics/battle_anims/sprites/substitute.bin | Bin 2048 -> 0 bytes .../battle_anims/sprites/substitute_back.png | Bin 0 -> 405 bytes include/graphics.h | 4 ++-- src/battle_gfx_sfx_util.c | 4 ++-- src/graphics.c | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 graphics/battle_anims/sprites/substitute.bin create mode 100644 graphics/battle_anims/sprites/substitute_back.png diff --git a/graphics/battle_anims/sprites/substitute.bin b/graphics/battle_anims/sprites/substitute.bin deleted file mode 100644 index d30c07d4ef1f4e153b5af07e41aa7135451b85d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2048 zcmeH_zfQw25XNtTBxCyquyuun2Pmval`ahr;A=9XO1Wg~ViLA6B$nS3G4nYhRfkSU z{26l6&wuV5JKtv$%`rRhBMuy}Yk(-mzycFfW?tG%WJsAgKnYPd07>Y{3_ud*^(FKB zBeVG!zdzF`a_i_!;rCMq92v+@$dF0{LE|y(mTk4=N>lDtQm#c%GhcPfwyn5-Q#Q3T z(j)?(9`;1{poLb2R}P1u8>7=3&@@KzJMg@&=C0=zt~N; zf)tcbKpnzE7j@o;H4gJrpt(`^+G5YK-mGq-<~p#a_SVuJ$Kjk^{koay;^SE z@c1~DD_ZfB*2Huxt_czoSBAxeB)Ke)Ywz~zdBLEi*?;~`Tacg4zl5lO{Nvx3C|o_w ztbAgsy4#EEG5lw`;$HP@mYooJyS3Y?uz6bMMa!Oat^Apck&y~hxTM~xCVTS>Pj&vZ za#4WJp}KNkuAtqK4Xc@N8eirUSKRW2m-SlrfvpqlxYz{!<^=RIZ2fxHae{8uhK6Gm zNA&IohJQc4;hq91IFLPgg&ebxsLQ0I#U5`Tzg` literal 0 HcmV?d00001 diff --git a/include/graphics.h b/include/graphics.h index 4a4d86250..069924f78 100644 --- a/include/graphics.h +++ b/include/graphics.h @@ -3936,8 +3936,8 @@ extern const u32 gBlankGfxCompressed[]; extern const u32 gInterfaceGfx_HPNumbers[]; extern const u32 gGhostFrontPic[]; extern const u32 gGhostPalette[]; -extern const u32 gSubstituteDollGfx[]; -extern const u32 gSubstituteDollTilemap[]; +extern const u32 gSubstituteDollFrontGfx[]; +extern const u32 gSubstituteDollBackGfx[]; extern const u32 gSubstituteDollPal[]; // ice diff --git a/src/battle_gfx_sfx_util.c b/src/battle_gfx_sfx_util.c index 330880e70..a79a09254 100644 --- a/src/battle_gfx_sfx_util.c +++ b/src/battle_gfx_sfx_util.c @@ -763,9 +763,9 @@ void BattleLoadSubstituteOrMonSpriteGfx(u8 battlerId, bool8 loadMonSprite) { position = GetBattlerPosition(battlerId); if (GetBattlerSide(battlerId) != B_SIDE_PLAYER) - LZDecompressVram(gSubstituteDollGfx, gMonSpritesGfxPtr->sprites[position]); + LZDecompressVram(gSubstituteDollFrontGfx, gMonSpritesGfxPtr->sprites[position]); else - LZDecompressVram(gSubstituteDollTilemap, gMonSpritesGfxPtr->sprites[position]); + LZDecompressVram(gSubstituteDollBackGfx, gMonSpritesGfxPtr->sprites[position]); for (i = 1; i < 4; ++i) { u8 (*ptr)[4][0x800] = gMonSpritesGfxPtr->sprites[position]; diff --git a/src/graphics.c b/src/graphics.c index 8e606ca3f..94fd2cc6e 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -839,8 +839,8 @@ const u32 gBattleAnimSpriteGfx_Confetti[] = INCBIN_U32("graphics/battle_anims/sp const u32 gBattleAnimSpritePal_Confetti[] = INCBIN_U32("graphics/battle_anims/sprites/confetti.gbapal.lz"); const u32 gSubstituteDollPal[] = INCBIN_U32("graphics/battle_anims/sprites/substitute.gbapal.lz"); -const u32 gSubstituteDollGfx[] = INCBIN_U32("graphics/battle_anims/sprites/substitute.4bpp.lz"); -const u32 gSubstituteDollTilemap[] = INCBIN_U32("graphics/battle_anims/sprites/substitute.bin.lz"); +const u32 gSubstituteDollFrontGfx[] = INCBIN_U32("graphics/battle_anims/sprites/substitute.4bpp.lz"); +const u32 gSubstituteDollBackGfx[] = INCBIN_U32("graphics/battle_anims/sprites/substitute_back.4bpp.lz"); const u32 gBattleAnimSpriteGfx_GreenStar[] = INCBIN_U32("graphics/battle_anims/sprites/green_star.4bpp.lz"); const u32 gBattleAnimSpritePal_GreenStar[] = INCBIN_U32("graphics/battle_anims/sprites/green_star.gbapal.lz");