summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Increase-money-limit.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/Increase-money-limit.md b/Increase-money-limit.md
index d8bc8b8..25b0611 100644
--- a/Increase-money-limit.md
+++ b/Increase-money-limit.md
@@ -3,8 +3,8 @@ Credit to DizzyEgg for this feature. This feature may also be directly be pulled
This tutorial will raise the money limit to 9,999,999.
## Contents
-1. [Increase max money amount](1-increase-max-money-amount)
-2. [Fix usages of money](2-fix-usages-of-money)
+1. [Increase max money amount](#1-increase-max-money-amount)
+2. [Fix usages of money](#2-fix-usages-of-money)
## 1. Increase max money amount
The first and most obvious thing we need to do is increase the max money constant. Edit [src/money.c](../blob/master/src/money.c):
@@ -21,8 +21,9 @@ The position the money amount is at is now incorrect. We can fix this by editing
- PrintMoneyAmount(windowId, 0x26, 1, amount, speed);
+ PrintMoneyAmount(windowId, 0x20, 1, amount, speed);
}
-
+```
We also need to fix the printing of the money itself, as right now, it only supports a 6 digit number. All we need to do is change 6 to 7 in the same file:
+```diff
void PrintMoneyAmount(u8 windowId, u8 x, u8 y, int amount, u8 speed)
{
u8 *txtPtr;
@@ -41,8 +42,8 @@ We also need to fix the printing of the money itself, as right now, it only supp
StringExpandPlaceholders(txtPtr, gText_PokedollarVar1);
AddTextPrinterParameterized(windowId, 1, gStringVar4, x, y, speed, NULL);
}
-Now that money prints properly, we need to update the places where they are used.
```
+Now that money prints properly, we need to update the places where they are used.
## 2. Fix usages of money
The X value when printing money in shops also needs to be adjusted. Edit [src/shop.c](../blob/master/src/shop.c):