summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExpoSeed <43502820+ExpoSeed@users.noreply.github.com>2020-06-13 12:30:56 -0500
committerExpoSeed <43502820+ExpoSeed@users.noreply.github.com>2020-06-13 12:30:56 -0500
commit70d1ed1a14499240f39498f373fd67e2d7f356a0 (patch)
tree6c7c9fd5d29463b014c27c2e66e716da05dc7cca
parent2ec1d15aa3b7070d886acf903afc1348254de749 (diff)
fix error
-rw-r--r--Infinite-TM-usage.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/Infinite-TM-usage.md b/Infinite-TM-usage.md
index 2146fb5..11f2a1a 100644
--- a/Infinite-TM-usage.md
+++ b/Infinite-TM-usage.md
@@ -33,7 +33,7 @@ static void Task_LearnedMove(u8 taskId)
```
If you were to stop here, TMs can still be given to Pokemon and you can still see the number in the bag. The next step will address this.
## 2. Treat TMs as HMs in the bag
-`struct Item` has a field `importance`. If this field has a nonzero value, then the item is treated like a key item, and cannot be held, tossed, or deposited in the PC, and it will not display an item count in the bag. Furthermore, items with a price of 0 cannot be sold.
+`struct Item` has a field `importance`. If this field has a nonzero value, then the item is treated like a key item, and cannot be held, tossed, or deposited in the PC, and it will not display an item count in the bag.
Edit [src/data/items.h](../blob/master/src/data/items.h):
```diff
@@ -41,8 +41,7 @@ Edit [src/data/items.h](../blob/master/src/data/items.h):
{
.name = _("TM01"),
.itemId = ITEM_TM01_FOCUS_PUNCH,
-- .price = 3000,
-+ .price = 0,
+ .price = 3000,
.description = sTM01Desc,
+ .importance = 1,
.pocket = POCKET_TM_HM,