summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExpoSeed <43502820+ExpoSeed@users.noreply.github.com>2020-06-14 15:23:29 -0500
committerExpoSeed <43502820+ExpoSeed@users.noreply.github.com>2020-06-14 15:23:29 -0500
commitb025b147d8e1435c69518775f1d762f74476d3e5 (patch)
treec4525778227265117b0bbeb81349bf6e4e6606d7
parent9cff5ff5deaea7f6a008e3d797965df617c206dd (diff)
Updated Infinite TM usage (markdown)
-rw-r--r--Infinite-TM-usage.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/Infinite-TM-usage.md b/Infinite-TM-usage.md
index 9ec7aa4..4ac8f35 100644
--- a/Infinite-TM-usage.md
+++ b/Infinite-TM-usage.md
@@ -62,7 +62,7 @@ If you were to see what determines if an item can be sold, you will find that an
In order to avoid this, we will need to modify the logic that checks for whether an item can be sold. All we need to do is check if the item ID is a TM. Edit the `Task_ItemContext_Sell` function of [src/item_menu.c](../blob/master/src/item_menu.c):
```diff
- if (ItemId_GetPrice(gSpecialVar_ItemId) == 0)
-+ if (ItemId_GetPrice(gSpecialVar_ItemId) == 0)
++ if (ItemId_GetPrice(gSpecialVar_ItemId) == 0 || ItemId_GetPocket(gSpecialVar_ItemId) == POCKET_TM_HM)
{
CopyItemName(gSpecialVar_ItemId, gStringVar2);
StringExpandPlaceholders(gStringVar4, gText_CantBuyKeyItem);