From 53a014178d03d69352ed0f479f1af7c7239915cd Mon Sep 17 00:00:00 2001 From: FieryMewtwo <77066742+FieryMewtwo@users.noreply.github.com> Date: Tue, 26 Oct 2021 17:22:06 -0400 Subject: [PATCH] Updated Remove the functionally redundant move grammar tables (markdown) --- Remove-the-functionally-redundant-move-grammar-tables.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Remove-the-functionally-redundant-move-grammar-tables.md b/Remove-the-functionally-redundant-move-grammar-tables.md index d61e8aa..b8f1a15 100644 --- a/Remove-the-functionally-redundant-move-grammar-tables.md +++ b/Remove-the-functionally-redundant-move-grammar-tables.md @@ -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. 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 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);` And finally, change `sText_AttackerUsedX` and add an exclamation mark at the end of the string like so: -```c -static const u8 sText_AttackerUsedX[] = _("{B_ATK_NAME_WITH_PREFIX} \n{B_BUFF2}!”) +```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}!”) ``` And that’s it! You have now removed the move grammar tables and functions and also made it easier on resources because now the game won’t go through multiple functions just to print a single exclamation mark present in 5 different text strings. \ No newline at end of file