Fix safari zone (#2898)
This commit is contained in:
commit
16b89e9991
2 changed files with 3 additions and 19 deletions
|
@ -81,7 +81,6 @@ u8 CreateSafariPlayerHealthboxSprites(void);
|
||||||
void SetBattleBarStruct(u8 battler, u8 healthboxSpriteId, s32 maxVal, s32 currVal, s32 receivedValue);
|
void SetBattleBarStruct(u8 battler, u8 healthboxSpriteId, s32 maxVal, s32 currVal, s32 receivedValue);
|
||||||
void SetHealthboxSpriteInvisible(u8 healthboxSpriteId);
|
void SetHealthboxSpriteInvisible(u8 healthboxSpriteId);
|
||||||
void SetHealthboxSpriteVisible(u8 healthboxSpriteId);
|
void SetHealthboxSpriteVisible(u8 healthboxSpriteId);
|
||||||
void DestoryHealthboxSprite(u8 healthboxSpriteId);
|
|
||||||
void DummyBattleInterfaceFunc(u8 healthboxSpriteId, bool8 isDoubleBattleBankOnly);
|
void DummyBattleInterfaceFunc(u8 healthboxSpriteId, bool8 isDoubleBattleBankOnly);
|
||||||
void UpdateOamPriorityInAllHealthboxes(u8 priority, bool32 hideHpBoxes);
|
void UpdateOamPriorityInAllHealthboxes(u8 priority, bool32 hideHpBoxes);
|
||||||
void InitBattlerHealthboxCoords(u8 battler);
|
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_UpdateLevel(u32 healthboxId, u32 level);
|
||||||
static void MegaIndicator_CreateSprites(u32 battlerId, u32 healthboxSpriteId);
|
static void MegaIndicator_CreateSprites(u32 battlerId, u32 healthboxSpriteId);
|
||||||
static void MegaIndicator_UpdateOamPriorities(u32 healthboxId, u32 oamPriority);
|
static void MegaIndicator_UpdateOamPriorities(u32 healthboxId, u32 oamPriority);
|
||||||
static void MegaIndicator_DestroySprites(u32 healthboxSpriteId);
|
|
||||||
static void SpriteCb_MegaIndicator(struct Sprite *);
|
static void SpriteCb_MegaIndicator(struct Sprite *);
|
||||||
|
|
||||||
static u8 GetStatusIconForBattlerId(u8, u8);
|
static u8 GetStatusIconForBattlerId(u8, u8);
|
||||||
|
@ -884,14 +883,6 @@ static void UpdateSpritePos(u8 spriteId, s16 x, s16 y)
|
||||||
gSprites[spriteId].y = 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)
|
void DummyBattleInterfaceFunc(u8 healthboxSpriteId, bool8 isDoubleBattleBattlerOnly)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1540,6 +1531,9 @@ void MegaIndicator_SetVisibilities(u32 healthboxId, bool32 invisible)
|
||||||
u8 *spriteIds = MegaIndicator_GetSpriteIds(healthboxId);
|
u8 *spriteIds = MegaIndicator_GetSpriteIds(healthboxId);
|
||||||
u32 battlerId = gSprites[healthboxId].hMain_Battler;
|
u32 battlerId = gSprites[healthboxId].hMain_Battler;
|
||||||
|
|
||||||
|
if (GetSafariZoneFlag())
|
||||||
|
return;
|
||||||
|
|
||||||
for (i = 0; i < INDICATOR_COUNT; i++)
|
for (i = 0; i < INDICATOR_COUNT; i++)
|
||||||
{
|
{
|
||||||
if (invisible == TRUE)
|
if (invisible == TRUE)
|
||||||
|
@ -1599,15 +1593,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)
|
static void SpriteCb_MegaIndicator(struct Sprite *sprite)
|
||||||
{
|
{
|
||||||
u32 battlerId = sprite->tBattler;
|
u32 battlerId = sprite->tBattler;
|
||||||
|
|
Loading…
Reference in a new issue