about summary refs log tree commit diff stats
path: root/gba/source
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-09-13 15:43:40 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-09-13 15:43:40 -0400
commite2a76d1f0fd978f285edf1dbc0f6e87cf89c63ce (patch)
tree2d0ead3d268bb7ddf4ab7272c7d0d6c711ea3f51 /gba/source
parent98fec850efde05daa72259c937b1eac05b2c695a (diff)
downloadgen3uploader-e2a76d1f0fd978f285edf1dbc0f6e87cf89c63ce.tar.gz
gen3uploader-e2a76d1f0fd978f285edf1dbc0f6e87cf89c63ce.tar.bz2
gen3uploader-e2a76d1f0fd978f285edf1dbc0f6e87cf89c63ce.zip
Added "Orre" flag to Pokémon serialization
See wiki for more information on why.
Diffstat (limited to 'gba/source')
-rw-r--r--gba/source/serialize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gba/source/serialize.c b/gba/source/serialize.c index 12afbdc..069418d 100644 --- a/gba/source/serialize.c +++ b/gba/source/serialize.c
@@ -91,6 +91,7 @@ void PokemonIntermediateInit(
91 pki->pokeball = sub3->pokeball; 91 pki->pokeball = sub3->pokeball;
92 pki->altAbility = sub3->altAbility; 92 pki->altAbility = sub3->altAbility;
93 pki->language = bpkm->language & 7; 93 pki->language = bpkm->language & 7;
94 pki->orre = (sub3->metGame == 15);
94 95
95 // Derive nature from the personality value. 96 // Derive nature from the personality value.
96 pki->nature = (bpkm->personality % 25); 97 pki->nature = (bpkm->personality % 25);