From cdfc61fc757c69006472863e0813ffa2f720832c Mon Sep 17 00:00:00 2001 From: kiliwily <69381603+kiliwily@users.noreply.github.com> Date: Wed, 9 Feb 2022 19:33:30 +0100 Subject: Updated Increase money limit (markdown) --- Increase-money-limit.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3