Fixes Soft Level Cap issue (#4327)

This commit is contained in:
Alex 2024-04-01 23:42:14 +02:00 committed by GitHub
parent e1f6480e32
commit f5a5932e4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -2146,7 +2146,7 @@ void PlayerHandleExpUpdate(u32 battler)
u8 monId = gBattleResources->bufferA[battler][1];
s32 taskId, expPointsToGive;
if (GetMonData(&gPlayerParty[monId], MON_DATA_LEVEL) >= GetCurrentLevelCap())
if (GetMonData(&gPlayerParty[monId], MON_DATA_LEVEL) >= MAX_LEVEL)
{
PlayerBufferExecCompleted(battler);
}

View File

@ -2688,7 +2688,7 @@ static void MoveBattleBarGraphically(u8 battlerId, u8 whichBar)
&gBattleSpritesDataPtr->battleBars[battlerId].currValue,
array, B_EXPBAR_PIXELS / 8);
level = GetMonData(&gPlayerParty[gBattlerPartyIndexes[battlerId]], MON_DATA_LEVEL);
if (level >= GetCurrentLevelCap())
if (level >= MAX_LEVEL)
{
for (i = 0; i < 8; i++)
array[i] = 0;