mirror of https://github.com/pret/pokeemerald.git
Updated Remove the functionally redundant move grammar tables (markdown)
parent
172f9474f4
commit
53a014178d
|
@ -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 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.
|
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.
|
Loading…
Reference in New Issue