z move pp color (#2690)
This commit is contained in:
parent
e3e005b0cc
commit
e4045a7a5f
1 changed files with 6 additions and 1 deletions
|
@ -3913,8 +3913,13 @@ void SetPpNumbersPaletteInMoveSelection(void)
|
||||||
{
|
{
|
||||||
struct ChooseMoveStruct *chooseMoveStruct = (struct ChooseMoveStruct *)(&gBattleResources->bufferA[gActiveBattler][4]);
|
struct ChooseMoveStruct *chooseMoveStruct = (struct ChooseMoveStruct *)(&gBattleResources->bufferA[gActiveBattler][4]);
|
||||||
const u16 *palPtr = gPPTextPalette;
|
const u16 *palPtr = gPPTextPalette;
|
||||||
u8 var = GetCurrentPpToMaxPpState(chooseMoveStruct->currentPp[gMoveSelectionCursor[gActiveBattler]],
|
u8 var;
|
||||||
|
|
||||||
|
if (!gBattleStruct->zmove.viewing)
|
||||||
|
var = GetCurrentPpToMaxPpState(chooseMoveStruct->currentPp[gMoveSelectionCursor[gActiveBattler]],
|
||||||
chooseMoveStruct->maxPp[gMoveSelectionCursor[gActiveBattler]]);
|
chooseMoveStruct->maxPp[gMoveSelectionCursor[gActiveBattler]]);
|
||||||
|
else
|
||||||
|
var = GetCurrentPpToMaxPpState(chooseMoveStruct->currentPp[gMoveSelectionCursor[gActiveBattler]], gBattleMoves[gMoveSelectionCursor[gActiveBattler]].pp);
|
||||||
|
|
||||||
gPlttBufferUnfaded[92] = palPtr[(var * 2) + 0];
|
gPlttBufferUnfaded[92] = palPtr[(var * 2) + 0];
|
||||||
gPlttBufferUnfaded[91] = palPtr[(var * 2) + 1];
|
gPlttBufferUnfaded[91] = palPtr[(var * 2) + 1];
|
||||||
|
|
Loading…
Reference in a new issue