summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFieryMewtwo <77066742+FieryMewtwo@users.noreply.github.com>2021-10-26 17:22:06 -0400
committerFieryMewtwo <77066742+FieryMewtwo@users.noreply.github.com>2021-10-26 17:22:06 -0400
commit53a014178d03d69352ed0f479f1af7c7239915cd (patch)
tree48d8eea8bf57a8768f68525057092e4d6b946877
parent172f9474f47c8ecdfa8710d96e640d6f5e938700 (diff)
Updated Remove the functionally redundant move grammar tables (markdown)
-rw-r--r--Remove-the-functionally-redundant-move-grammar-tables.md7
1 files 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