mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-19 20:18:34 +01:00
Move mega indicator for lv 100 mons
Indicator sprite overlaps the "100" without this.
This commit is contained in:
parent
38120afbac
commit
bc298d242f
@ -1519,11 +1519,15 @@ u32 CreateMegaIndicatorSprite(u32 battlerId, u32 which)
|
|||||||
{
|
{
|
||||||
x += sIndicatorPosDoubles[position][0];
|
x += sIndicatorPosDoubles[position][0];
|
||||||
y += sIndicatorPosDoubles[position][1];
|
y += sIndicatorPosDoubles[position][1];
|
||||||
|
if (gBattleMons[battlerId].level >= 100)
|
||||||
|
x -= 4;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
x += sIndicatorPosSingles[position][0];
|
x += sIndicatorPosSingles[position][0];
|
||||||
y += sIndicatorPosSingles[position][1];
|
y += sIndicatorPosSingles[position][1];
|
||||||
|
if (gBattleMons[battlerId].level >= 100)
|
||||||
|
x -= 4;
|
||||||
}
|
}
|
||||||
spriteId = CreateSpriteAtEnd(&sSpriteTemplate_MegaIndicator, x, y, 0);
|
spriteId = CreateSpriteAtEnd(&sSpriteTemplate_MegaIndicator, x, y, 0);
|
||||||
gSprites[gSprites[gHealthboxSpriteIds[battlerId]].oam.affineParam].hOther_IndicatorSpriteId = spriteId;
|
gSprites[gSprites[gHealthboxSpriteIds[battlerId]].oam.affineParam].hOther_IndicatorSpriteId = spriteId;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user