mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-27 05:43:51 +01:00
Merge pull request #1990 from AsparagusEduardo/BE_debugArrows
Improved battle debug number value changing
This commit is contained in:
commit
84ce9745d5
@ -1811,14 +1811,42 @@ static bool32 TryMoveDigit(struct BattleDebugModifyArrows *modArrows, bool32 mov
|
||||
if (moveUp)
|
||||
{
|
||||
if (charDigits[modArrows->currentDigit] == CHAR_9)
|
||||
{
|
||||
charDigits[modArrows->currentDigit] = CHAR_0;
|
||||
for (i = modArrows->currentDigit - 1; i >= 0; i--)
|
||||
{
|
||||
if (charDigits[i] == CHAR_9)
|
||||
{
|
||||
charDigits[i] = CHAR_0;
|
||||
}
|
||||
else
|
||||
{
|
||||
charDigits[i]++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
charDigits[modArrows->currentDigit]++;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (charDigits[modArrows->currentDigit] == CHAR_0)
|
||||
{
|
||||
charDigits[modArrows->currentDigit] = CHAR_9;
|
||||
for (i = modArrows->currentDigit - 1; i >= 0; i--)
|
||||
{
|
||||
if (charDigits[i] == CHAR_0)
|
||||
{
|
||||
charDigits[i] = CHAR_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
charDigits[i]--;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
charDigits[modArrows->currentDigit]--;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user