diff options
-rw-r--r-- | Infinite-TM-usage.md | 5 |
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, |