diff options
author | Matthew Cabral <surferdude932@hotmail.com> | 2022-01-21 22:39:29 -0500 |
---|---|---|
committer | Matthew Cabral <surferdude932@hotmail.com> | 2022-01-21 22:39:29 -0500 |
commit | d3458e00318cc845a65c15417741c76fb6b64f83 (patch) | |
tree | b5dc47b7f14dcf60b2a72551097f80f782222736 | |
parent | e0beac6c6a5e06a874ff2c84738cb066f444f4be (diff) |
Changed `(moveType)` to `(type)` based on current `src/pokemon.c`
-rw-r--r-- | Add-Physical-Special-Split.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Add-Physical-Special-Split.md b/Add-Physical-Special-Split.md index 224802b..1931aff 100644 --- a/Add-Physical-Special-Split.md +++ b/Add-Physical-Special-Split.md @@ -138,7 +138,7 @@ if (defender->ability == ABILITY_THICK_FAT && (type == TYPE_FIRE || type == TYPE The next thing we need to do is change the arguments passed to IS_TYPE_PHYSICAL and IS_TYPE_SPECIAL. Originally, they were passed a type argument, but now we want to pass a move argument. There is one instance of each of these functions in **src/pokemon.c**, three more in **src/battle_script_commands.c**, and two more in **src/battle_tv.c**. The ones in **pokemon.c** should be changed from IS_TYPE_PHYSICAL(type) and IS_TYPE_SPECIAL(type) to IS_TYPE_PHYSICAL(gBattleMoves[move]) and IS_TYPE_SPECIAL(gBattleMoves[move]). The first one in **battle_script_commands.c** can also be changed like this, but the argument names are different for the second and third one. The second one looks like this originally: ```c -IS_TYPE_PHYSICAL(moveType) +IS_TYPE_PHYSICAL(type) ``` We will change this to: ```c @@ -146,7 +146,7 @@ IS_TYPE_PHYSICAL(gBattleMoves[gCurrentMove]) ``` The third one also needs to be changed; originally it reads: ```c -IS_TYPE_SPECIAL(moveType) +IS_TYPE_SPECIAL(type) ``` We will change this to: ```c |