about summary refs log tree commit diff stats
path: root/gba/source/serialize.c
diff options
context:
space:
mode:
Diffstat (limited to 'gba/source/serialize.c')
-rw-r--r--gba/source/serialize.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gba/source/serialize.c b/gba/source/serialize.c index 5c4ff8d..4cb95ac 100644 --- a/gba/source/serialize.c +++ b/gba/source/serialize.c
@@ -101,6 +101,26 @@ void PokemonIntermediateInit(
101 pki->language = bpkm->language & 7; 101 pki->language = bpkm->language & 7;
102 pki->orre = (sub3->metGame == 15); 102 pki->orre = (sub3->metGame == 15);
103 103
104 pki->coolRibbons = sub3->coolRibbon;
105 pki->beautyRibbons = sub3->beautyRibbon;
106 pki->cuteRibbons = sub3->cuteRibbon;
107 pki->smartRibbons = sub3->smartRibbon;
108 pki->toughRibbons = sub3->toughRibbon;
109
110 pki->miscRibbons =
111 (CHAMPION_RIBBON * sub3->championRibbon)
112 | (WINNING_RIBBON * sub3->winningRibbon)
113 | (VICTORY_RIBBON * sub3->victoryRibbon)
114 | (ARTIST_RIBBON * sub3->artistRibbon)
115 | (EFFORT_RIBBON * sub3->effortRibbon)
116 | (MARINE_RIBBON * sub3->marineRibbon)
117 | (LAND_RIBBON * sub3->landRibbon)
118 | (SKY_RIBBON * sub3->skyRibbon)
119 | (COUNTRY_RIBBON * sub3->countryRibbon)
120 | (NATIONAL_RIBBON * sub3->nationalRibbon)
121 | (EARTH_RIBBON * sub3->earthRibbon)
122 | (WORLD_RIBBON * sub3->worldRibbon);
123
104 // Derive nature from the personality value. 124 // Derive nature from the personality value.
105 pki->nature = (bpkm->personality % 25); 125 pki->nature = (bpkm->personality % 25);
106 126