Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Foreign dex entries #324

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 0 additions & 12 deletions include/overlay021/ov21_021D5600.h

This file was deleted.

12 changes: 12 additions & 0 deletions include/overlay021/pokedex_text.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef POKEPLATINUM_POKEDEX_TEXT_H
#define POKEPLATINUM_POKEDEX_TEXT_H

#include "strbuf.h"

void PokedexText_Free(Strbuf *strbuf);
int PokedexText_ForeignLanguage(int languageIndex);
Strbuf *PokedexText_NameNumber(int species, int language, int heapID);
Strbuf *PokedexText_Category(int species, int language, int heapID);
Strbuf *PokedexText_DexEntry(int species, int language, int entryOffset, int heapID);

#endif // POKEPLATINUM_POKEDEX_TEXT_H
9 changes: 9 additions & 0 deletions include/pokedex_language.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef POKEPLATINUM_POKEDEX_LANGUAGE_H
#define POKEPLATINUM_POKEDEX_LANGUAGE_H

#define NUM_LANGUAGES 6

int PokedexLanguage_LanguageToIndex(int language);
int PokedexLanguage_IndexToLanguage(int languageIndex);

#endif // POKEPLATINUM_POKEDEX_LANGUAGE_H
7 changes: 0 additions & 7 deletions include/unk_020986CC.h

This file was deleted.

4 changes: 2 additions & 2 deletions platinum.us/main.lsf
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ Static main
Object main.nef.p/src_unk_02097B18.c.o
Object main.nef.p/src_unk_02098218.c.o
Object main.nef.p/src_unk_020985E4.c.o
Object main.nef.p/src_unk_020986CC.c.o
Object main.nef.p/src_pokedex_language.c.o
Object main.nef.p/src_pokedex_heightweight.c.o
Object main.nef.p/src_pokedex_data_index.c.o
Object main.nef.p/src_unk_020F6824.c.o
Expand Down Expand Up @@ -792,7 +792,7 @@ Overlay overlay21
Object main.nef.p/src_overlay021_ov21_021D4C0C.c.o
Object main.nef.p/src_overlay021_ov21_021D4EE4.c.o
Object main.nef.p/src_overlay021_pokedex_field_map.c.o
Object main.nef.p/src_overlay021_ov21_021D5600.c.o
Object main.nef.p/src_overlay021_pokedex_text.c.o
Object main.nef.p/src_overlay021_pokedex_enc_data.c.o
Object main.nef.p/src_overlay021_ov21_021D5AEC.c.o
Object main.nef.p/src_overlay021_ov21_021D76B0.c.o
Expand Down
15 changes: 0 additions & 15 deletions res/pokemon/000/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,5 @@
"learnset": {
"tms": [],
"level_up": {}
},
"pokedex_data": {
"height": 7,
"weight": 69,
"body_shape": "SHAPE_QUADRUPED",
"trainer_scale_f": 272,
"pokemon_scale_f": 337,
"trainer_scale_m": 256,
"pokemon_scale_m": 337,
"trainer_pos_f": 8,
"pokemon_pos_f": 22,
"trainer_pos_m": 9,
"pokemon_pos_m": 22,
"entry_text": null,
"category": "????? Pokémon"
}
}
56 changes: 56 additions & 0 deletions res/pokemon/000/pokedex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
"height": !!int |-
7
"weight": !!int |-
69
"body_shape": |-
SHAPE_QUADRUPED
"trainer_scale_f": !!int |-
272
"pokemon_scale_f": !!int |-
337
"trainer_scale_m": !!int |-
256
"pokemon_scale_m": !!int |-
337
"trainer_pos_f": !!int |-
8
"pokemon_pos_f": !!int |-
22
"trainer_pos_m": !!int |-
9
"pokemon_pos_m": !!int |-
22
"english":
"category": |-
????? Pokémon
"entry_text": ""
"french":
"name": |-
----------
"category": |-
Pokémon ?????
"entry_text": ""
"german":
"name": |-
----------
"category": |-
?????
"entry_text": ""
"italian":
"name": |-
----------
"category": |-
Pokémon ?????
"entry_text": ""
"spanish":
"name": |-
----------
"category": |-
Pokémon (?)
"entry_text": ""
"japanese":
"name": |-
-----
"category": |-
?????ポケモン
"entry_text": ""
15 changes: 0 additions & 15 deletions res/pokemon/abomasnow/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,5 @@
"footprint": {
"has_footprint": true,
"footprint_size": "FOOTPRINT_MEDIUM"
},
"pokedex_data": {
"height": 22,
"weight": 1355,
"body_shape": "SHAPE_BIPEDAL_TAILED",
"trainer_scale_f": 335,
"pokemon_scale_f": 256,
"trainer_scale_m": 328,
"pokemon_scale_m": 256,
"trainer_pos_f": 15,
"pokemon_pos_f": 4,
"trainer_pos_m": 15,
"pokemon_pos_m": 4,
"entry_text": "They appear when the snow flowers\nbloom. When the petals fall, they\nretreat to places unknown again.",
"category": "Frost Tree Pokémon"
}
}
74 changes: 74 additions & 0 deletions res/pokemon/abomasnow/pokedex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
"height": !!int |-
22
"weight": !!int |-
1355
"body_shape": |-
SHAPE_BIPEDAL_TAILED
"trainer_scale_f": !!int |-
335
"pokemon_scale_f": !!int |-
256
"trainer_scale_m": !!int |-
328
"pokemon_scale_m": !!int |-
256
"trainer_pos_f": !!int |-
15
"pokemon_pos_f": !!int |-
4
"trainer_pos_m": !!int |-
15
"pokemon_pos_m": !!int |-
4
"english":
"category": |-
Frost Tree Pokémon
"entry_text": |-
They appear when the snow flowers
bloom. When the petals fall, they
retreat to places unknown again.
"french":
"name": |-
BLIZZAROI
"category": |-
Pokémon Arbregelé
"entry_text": |-
C’est l’abominable homme des
neiges. Il ensevelit les montagnes
sous ses blizzards.
"german":
"name": |-
REXBLISAR
"category": |-
Frostbaum
"entry_text": |-
Es löst in den Bergen, wo ewiger
Schnee liegt, Blizzards aus. Es ist
ein scheußlicher Schneemann.
"italian":
"name": |-
Abomasnow
"category": |-
Pokémon Albergelo
"entry_text": |-
Crea bufere di neve sui monti
ricoperti da nevi perenni.
È l’abominevole essere delle nevi.
"spanish":
"name": |-
Abomasnow
"category": |-
Pokémon Árbol Nieve
"entry_text": |-
Es el abominable hombre de las
nieves. Produce ventiscas en las
montañas cubiertas de nieve.
"japanese":
"name": |-
ユキノオ-
"category": |-
じゅひょうポケモン
"entry_text": |-
まんねんゆきの つもる やまで
くらし ブリザ-ドを まきおこす。
ゆきおとこの しょうたいだ。
15 changes: 0 additions & 15 deletions res/pokemon/abra/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,5 @@
"footprint": {
"has_footprint": true,
"footprint_size": "FOOTPRINT_MEDIUM"
},
"pokedex_data": {
"height": 9,
"weight": 195,
"body_shape": "SHAPE_BIPEDAL_TAILED",
"trainer_scale_f": 272,
"pokemon_scale_f": 364,
"trainer_scale_m": 256,
"pokemon_scale_m": 364,
"trainer_pos_f": 8,
"pokemon_pos_f": 25,
"trainer_pos_m": 9,
"pokemon_pos_m": 25,
"entry_text": "Using its psychic power is such a\nstrain on its brain that it needs\nto sleep for 18 hours a day.",
"category": "Psi Pokémon"
}
}
74 changes: 74 additions & 0 deletions res/pokemon/abra/pokedex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
"height": !!int |-
9
"weight": !!int |-
195
"body_shape": |-
SHAPE_BIPEDAL_TAILED
"trainer_scale_f": !!int |-
272
"pokemon_scale_f": !!int |-
364
"trainer_scale_m": !!int |-
256
"pokemon_scale_m": !!int |-
364
"trainer_pos_f": !!int |-
8
"pokemon_pos_f": !!int |-
25
"trainer_pos_m": !!int |-
9
"pokemon_pos_m": !!int |-
25
"english":
"category": |-
Psi Pokémon
"entry_text": |-
Using its psychic power is such a
strain on its brain that it needs
to sleep for 18 hours a day.
"french":
"name": |-
ABRA
"category": |-
Pokémon Psy
"entry_text": |-
Il dort 18 heures par jour. Même
éveillé, il ne prend pas la peine
de se lever pour se téléporter.
"german":
"name": |-
ABRA
"category": |-
Psi
"entry_text": |-
18 Stunden am Tag schläft es. Und
wenn es wach ist, teleportiert es
sich, während es sitzen bleibt.
"italian":
"name": |-
Abra
"category": |-
Pokémon Psico
"entry_text": |-
Dorme per 18 ore al giorno.
Anche da sveglio, si teletrasporta
rimanendo seduto.
"spanish":
"name": |-
Abra
"category": |-
Pokémon Psi
"entry_text": |-
Duerme 18 horas al día. Cuando
está despierto no se levanta ni
para teletransportarse.
"japanese":
"name": |-
ケ-シィ
"category": |-
ねんりきポケモン
"entry_text": |-
まいにち 18じかん ねむる。
めざめている ときも すわったまま
テレポ-トで いどうする。
15 changes: 0 additions & 15 deletions res/pokemon/absol/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,20 +141,5 @@
"footprint": {
"has_footprint": true,
"footprint_size": "FOOTPRINT_MEDIUM"
},
"pokedex_data": {
"height": 12,
"weight": 470,
"body_shape": "SHAPE_QUADRUPED",
"trainer_scale_f": 272,
"pokemon_scale_f": 300,
"trainer_scale_m": 256,
"pokemon_scale_m": 300,
"trainer_pos_f": 8,
"pokemon_pos_f": 14,
"trainer_pos_m": 9,
"pokemon_pos_m": 14,
"entry_text": "Rumored to sense disasters with its\nhorn, it became a target. It fled\ndeep into the mountains.",
"category": "Disaster Pokémon"
}
}
Loading
Loading