mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
Remove unused battle funcs
This commit is contained in:
parent
49f412ebb2
commit
0f958806ea
@ -81,7 +81,6 @@ u8 CreateSafariPlayerHealthboxSprites(void);
|
||||
void SetBattleBarStruct(u8 battler, u8 healthboxSpriteId, s32 maxVal, s32 currVal, s32 receivedValue);
|
||||
void SetHealthboxSpriteInvisible(u8 healthboxSpriteId);
|
||||
void SetHealthboxSpriteVisible(u8 healthboxSpriteId);
|
||||
void DestoryHealthboxSprite(u8 healthboxSpriteId);
|
||||
void DummyBattleInterfaceFunc(u8 healthboxSpriteId, bool8 isDoubleBattleBankOnly);
|
||||
void UpdateOamPriorityInAllHealthboxes(u8 priority, bool32 hideHpBoxes);
|
||||
void InitBattlerHealthboxCoords(u8 battler);
|
||||
|
@ -186,7 +186,6 @@ static void MegaIndicator_SetVisibilities(u32 healthboxId, bool32 invisible);
|
||||
static void MegaIndicator_UpdateLevel(u32 healthboxId, u32 level);
|
||||
static void MegaIndicator_CreateSprites(u32 battlerId, u32 healthboxSpriteId);
|
||||
static void MegaIndicator_UpdateOamPriorities(u32 healthboxId, u32 oamPriority);
|
||||
static void MegaIndicator_DestroySprites(u32 healthboxSpriteId);
|
||||
static void SpriteCb_MegaIndicator(struct Sprite *);
|
||||
|
||||
static u8 GetStatusIconForBattlerId(u8, u8);
|
||||
@ -884,14 +883,6 @@ static void UpdateSpritePos(u8 spriteId, s16 x, s16 y)
|
||||
gSprites[spriteId].y = y;
|
||||
}
|
||||
|
||||
void DestoryHealthboxSprite(u8 healthboxSpriteId)
|
||||
{
|
||||
MegaIndicator_DestroySprites(healthboxSpriteId);
|
||||
DestroySprite(&gSprites[gSprites[healthboxSpriteId].oam.affineParam]);
|
||||
DestroySprite(&gSprites[gSprites[healthboxSpriteId].hMain_HealthBarSpriteId]);
|
||||
DestroySprite(&gSprites[healthboxSpriteId]);
|
||||
}
|
||||
|
||||
void DummyBattleInterfaceFunc(u8 healthboxSpriteId, bool8 isDoubleBattleBattlerOnly)
|
||||
{
|
||||
|
||||
@ -1599,15 +1590,6 @@ static void MegaIndicator_CreateSprites(u32 battlerId, u32 healthboxSpriteId)
|
||||
}
|
||||
}
|
||||
|
||||
static void MegaIndicator_DestroySprites(u32 healthboxSpriteId)
|
||||
{
|
||||
u32 i;
|
||||
u8 *spriteIds = MegaIndicator_GetSpriteIds(healthboxSpriteId);
|
||||
|
||||
for (i = 0; i < INDICATOR_COUNT; i++)
|
||||
DestroySprite(&gSprites[spriteIds[i]]);
|
||||
}
|
||||
|
||||
static void SpriteCb_MegaIndicator(struct Sprite *sprite)
|
||||
{
|
||||
u32 battlerId = sprite->tBattler;
|
||||
|
Loading…
Reference in New Issue
Block a user