mirror of
https://github.com/pret/pokeemerald.git
synced 2026-10-26 19:11:07 -05:00
Improved battle debug value change
This commit is contained in:
@@ -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]--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user