mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-04 18:30:07 +01:00
Improved battle debug value change
This commit is contained in:
parent
aa2b2e6a70
commit
6f363b219e
@ -1811,14 +1811,40 @@ 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