mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-27 22:03:53 +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 (moveUp)
|
||||||
{
|
{
|
||||||
if (charDigits[modArrows->currentDigit] == CHAR_9)
|
if (charDigits[modArrows->currentDigit] == CHAR_9)
|
||||||
|
{
|
||||||
charDigits[modArrows->currentDigit] = CHAR_0;
|
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
|
else
|
||||||
charDigits[modArrows->currentDigit]++;
|
charDigits[modArrows->currentDigit]++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (charDigits[modArrows->currentDigit] == CHAR_0)
|
if (charDigits[modArrows->currentDigit] == CHAR_0)
|
||||||
|
{
|
||||||
charDigits[modArrows->currentDigit] = CHAR_9;
|
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
|
else
|
||||||
charDigits[modArrows->currentDigit]--;
|
charDigits[modArrows->currentDigit]--;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user