diff options
-rw-r--r-- | Infinitely-reusable-TMs.md | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/Infinitely-reusable-TMs.md b/Infinitely-reusable-TMs.md index 79150f5..ce77e12 100644 --- a/Infinitely-reusable-TMs.md +++ b/Infinitely-reusable-TMs.md @@ -372,11 +372,10 @@ Now edit [maps/GoldenrodDeptStore5F.asm](../blob/master/maps/GoldenrodDeptStore5 .VeryHappy: writetext UnknownText_0x5615a buttonsound -+ checkevent EVENT_GOT_TM27_RETURN_FROM_GOLDENROD ++ checkitem TM_RETURN + iftrue .AlreadyGotTM verbosegiveitem TM_RETURN - iffalse .Done -+ setevent EVENT_GOT_TM27_RETURN_FROM_GOLDENROD setflag ENGINE_GOLDENROD_DEPT_STORE_TM27_RETURN closetext end @@ -386,11 +385,10 @@ Now edit [maps/GoldenrodDeptStore5F.asm](../blob/master/maps/GoldenrodDeptStore5 .NotVeryHappy: writetext UnknownText_0x561d8 buttonsound -+ checkevent EVENT_GOT_TM21_FRUSTRATION_FROM_GOLDENROD ++ checkitem TM_FRUSTRATION + iftrue .AlreadyGotTM verbosegiveitem TM_FRUSTRATION - iffalse .Done -+ setevent EVENT_GOT_TM21_FRUSTRATION_FROM_GOLDENROD setflag ENGINE_GOLDENROD_DEPT_STORE_TM27_RETURN closetext end @@ -419,18 +417,7 @@ Now edit [maps/GoldenrodDeptStore5F.asm](../blob/master/maps/GoldenrodDeptStore5 We did two things there: simplify the clerk script to just use a single Mart which won't have either redundant TM; and add clauses to the happiness-check lady that only allow one of each TM. -Those extra clauses introduced two new event constants, so edit [constants/event_constants.asm](../blob/master/constants/event_constants.asm): - -```diff -- const EVENT_03B -- const EVENT_03C -+ const EVENT_GOT_TM21_FRUSTRATION_FROM_GOLDENROD -+ const EVENT_GOT_TM27_RETURN_FROM_GOLDENROD -``` - -Here we replaced `EVENT_03B` and `EVENT_03C`, but it doesn't matter where the new constants go; events aren't in any order. - -Anyway, we also introduced the single `MART_GOLDENROD_5F` constant, so edit [constants/item_data_constants.asm](../blob/master/constants/item_data_constants.asm): +That introduced the single `MART_GOLDENROD_5F` constant, so edit [constants/item_data_constants.asm](../blob/master/constants/item_data_constants.asm): ```diff - const MART_GOLDENROD_5F_1 |