summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkiliwily <69381603+kiliwily@users.noreply.github.com>2022-02-09 19:33:30 +0100
committerkiliwily <69381603+kiliwily@users.noreply.github.com>2022-02-09 19:33:30 +0100
commitcdfc61fc757c69006472863e0813ffa2f720832c (patch)
tree1439d2c6f955c774976767ea0bb89939de8f76fd
parentff6d85aa0a433dfb4b676f4e17be2c0afb122713 (diff)
Updated Increase money limit (markdown)
-rw-r--r--Increase-money-limit.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/Increase-money-limit.md b/Increase-money-limit.md
index 9e87000..bf51925 100644
--- a/Increase-money-limit.md
+++ b/Increase-money-limit.md
@@ -61,7 +61,7 @@ The X value when printing money in shops also needs to be adjusted. Edit [src/sh
}
```
-Finally, we need to adjust the function call in the trainer card. Edit [src/trainer_card.c](../blob/master/src/trainer_card.c):
+We need to adjust the function call in the trainer card. Edit [src/trainer_card.c](../blob/master/src/trainer_card.c):
```diff
static void PrintMoneyOnCard(void)
{
@@ -90,6 +90,19 @@ Finally, we need to adjust the function call in the trainer card. Edit [src/trai
}
```
+Finally, we need to adjust the x value in [src/item_menu.c](../blob/master/src/item_menu.c):
+
+```static void PrintItemSoldAmount(int windowId, int numSold, int moneyEarned)
+{
+ u8 numDigits = (gBagPosition.pocket == BERRIES_POCKET) ? BERRY_CAPACITY_DIGITS : BAG_ITEM_CAPACITY_DIGITS;
+ ConvertIntToDecimalStringN(gStringVar1, numSold, STR_CONV_MODE_LEADING_ZEROS, numDigits);
+ StringExpandPlaceholders(gStringVar4, gText_xVar1);
+ AddTextPrinterParameterized(windowId, FONT_NORMAL, gStringVar4, 0, 1, TEXT_SKIP_DRAW, 0);
+- PrintMoneyAmount(windowId, 38, 1, moneyEarned, 0);
++ PrintMoneyAmount(windowId, 32, 1, moneyEarned, 0);
+}
+```
+
And that's it!
![](https://i.imgur.com/MfLQ3aT.png)