Updated Remove the functionally redundant move grammar tables (markdown)

FieryMewtwo 2021-10-26 17:22:06 -04:00
parent 172f9474f4
commit 53a014178d
1 changed files with 4 additions and 3 deletions

@ -10,7 +10,7 @@ These are all redundant in the English localization and all the strings have bee
This tutorial will show you how to remove them, which saves space and simplifies the code. This tutorial will show you how to remove them, which saves space and simplifies the code.
Open [src/battle_message.c](https://github.com/pret/pokeemerald/blob/master/src/battle_message.c) and remove the following declarations: Open [src/battle_message.c](https://github.com/pret/pokeemerald/blob/master/src/battle_message.c) and remove the following declarations:
```c ```diff
static void ChooseMoveUsedParticle static void ChooseMoveUsedParticle
static void ChooseTypeOfMoveUsedString static void ChooseTypeOfMoveUsedString
``` ```
@ -19,7 +19,8 @@ In the same file, look for the functions: `sGrammarMoveUsedTable`, `ChooseMoveUs
In the function `BufferStringBattle` in src/battle_message.c, remove `ChooseMoveUsedParticle(gBattleTextBuff1);` and `ChooseTypeOfMoveUsedString(gBattleTextBuff2);` In the function `BufferStringBattle` in src/battle_message.c, remove `ChooseMoveUsedParticle(gBattleTextBuff1);` and `ChooseTypeOfMoveUsedString(gBattleTextBuff2);`
And finally, change `sText_AttackerUsedX` and add an exclamation mark at the end of the string like so: And finally, change `sText_AttackerUsedX` and add an exclamation mark at the end of the string like so:
```c ```diff
static const u8 sText_AttackerUsedX[] = _("{B_ATK_NAME_WITH_PREFIX} \n{B_BUFF2}!”) - static const u8 sText_AttackerUsedX[] = _("{B_ATK_NAME_WITH_PREFIX} \n{B_BUFF2}”)
+ static const u8 sText_AttackerUsedX[] = _("{B_ATK_NAME_WITH_PREFIX} \n{B_BUFF2}!”)
``` ```
And thats it! You have now removed the move grammar tables and functions and also made it easier on resources because now the game wont go through multiple functions just to print a single exclamation mark present in 5 different text strings. And thats it! You have now removed the move grammar tables and functions and also made it easier on resources because now the game wont go through multiple functions just to print a single exclamation mark present in 5 different text strings.