Removed no longer valid note for item_expansion users

LOuroboros 2022-09-12 02:34:37 -03:00
parent 7350893fa7
commit 7797ea8f6a
1 changed files with 1 additions and 34 deletions

@ -235,36 +235,3 @@ And that's it! TMs are now reusable just like in Gen 5!
![](https://i.imgur.com/zA0lj2E.png) ![](https://i.imgur.com/zA0lj2E.png)
Optionally, see [this commit](https://github.com/LOuroboros/pokeemerald/commit/515c7cd3a345611f1fe755c7f71b1ba1e20bb88b) for an implementation by Karathan that turns TMs and HMs into a bitfield, freeing up some saveblock space. This saves space, but is slightly more complex. Optionally, see [this commit](https://github.com/LOuroboros/pokeemerald/commit/515c7cd3a345611f1fe755c7f71b1ba1e20bb88b) for an implementation by Karathan that turns TMs and HMs into a bitfield, freeing up some saveblock space. This saves space, but is slightly more complex.
**[Item_expansion](https://github.com/rh-hideout/pokeemerald-expansion/tree/item_expansion)** users, please keep in mind that if you decide to use the above refactorization of TMs and HMs, you will need to modify the `CanMonLearnTMTutor` function located in `src/party_menu.c` like this:
```diff
static u8 CanMonLearnTMTutor(struct Pokemon *mon, u16 item, u8 tutor)
{
u16 move;
if (GetMonData(mon, MON_DATA_IS_EGG))
return CANNOT_LEARN_MOVE_IS_EGG;
if (item >= ITEM_TM01)
{
- if (!CanMonLearnTMHM(mon, item - ITEM_TM01 - ((item > ITEM_TM100) ? 50 : 0)))
+ if (!CanMonLearnTMHM(mon, item - ITEM_TM01))
return CANNOT_LEARN_MOVE;
else
move = ItemIdToBattleMoveId(item);
}
else
{
if (!CanLearnTutorMove(GetMonData(mon, MON_DATA_SPECIES), tutor))
return CANNOT_LEARN_MOVE;
else
move = GetTutorMove(tutor);
}
if (MonKnowsMove(mon, move) == TRUE)
return ALREADY_KNOWS_MOVE;
else
return CAN_LEARN_MOVE;
}
```