mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-03-21 18:04:50 -05:00
update: make logic easier to read (ty alex!)
This commit is contained in:
parent
71686784d7
commit
2d5360560a
|
|
@ -2118,16 +2118,11 @@ static void MoveBattleBarGraphically(enum BattlerId battler, u8 whichBar)
|
|||
default:
|
||||
case HP_BAR_RED:
|
||||
if (maxValue > 1)
|
||||
{
|
||||
barElementId = HEALTHBOX_GFX_HP_BAR_RED;
|
||||
}
|
||||
else // handling for mons with 1 max HP, ie Shedinja
|
||||
{
|
||||
if (B_HPBAR_COLOR_THRESHOLD >= GEN_8)
|
||||
barElementId = HEALTHBOX_GFX_HP_BAR_GREEN;
|
||||
else
|
||||
barElementId = HEALTHBOX_GFX_HP_BAR_RED;
|
||||
}
|
||||
else if (B_HPBAR_COLOR_THRESHOLD >= GEN_8) // handling for mons with 1 max HP, ie Shedinja
|
||||
barElementId = HEALTHBOX_GFX_HP_BAR_GREEN;
|
||||
else
|
||||
barElementId = HEALTHBOX_GFX_HP_BAR_RED;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user