From 79ccd5513be2ae5bc14b7da3f901375497c2523f Mon Sep 17 00:00:00 2001 From: kiliwily <69381603+kiliwily@users.noreply.github.com> Date: Wed, 9 Feb 2022 19:34:49 +0100 Subject: Updated Increase money limit (markdown) --- Increase-money-limit.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Increase-money-limit.md b/Increase-money-limit.md index bf51925..5a8be35 100644 --- a/Increase-money-limit.md +++ b/Increase-money-limit.md @@ -54,7 +54,7 @@ The X value when printing money in shops also needs to be adjusted. Edit [src/sh FillWindowPixelBuffer(4, PIXEL_FILL(1)); - PrintMoneyAmount(4, 38, 1, gShopDataPtr->totalCost, TEXT_SKIP_DRAW); -+ PrintMoneyAmount(4, 32, 1, gShopDataPtr->totalCost, TEXT_SKIP_DRAW; ++ PrintMoneyAmount(4, 32, 1, gShopDataPtr->totalCost, TEXT_SKIP_DRAW); ConvertIntToDecimalStringN(gStringVar1, tItemCount, STR_CONV_MODE_LEADING_ZEROS, BAG_ITEM_CAPACITY_DIGITS); StringExpandPlaceholders(gStringVar4, gText_xVar1); BuyMenuPrint(4, gStringVar4, 0, 1, 0, 0); @@ -91,16 +91,16 @@ We need to adjust the function call in the trainer card. Edit [src/trainer_card. ``` 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); -} +```diff + 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! -- cgit v1.2.3