Skip to content

Commit

Permalink
feat: add Colosseum preliminary data (game info)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Aug 28, 2024
1 parent 9a8fe85 commit 19b6eda
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 1 deletion.
2 changes: 2 additions & 0 deletions data/games-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
{"id":"rs","name":"Ruby & Sapphire","type":"set","gameSet":null,"gameSuperSet":"rse","releaseDate":"2002-11-21","generation":3,"region":"hoenn","originMark":"none","pokedexes":["hoenn","national-rs"],"storage":{"numBoxes":14,"boxCapacity":30,"symbols":["caught","shiny"]}},
{"id":"rs-r","name":"Ruby","type":"game","gameSet":"rs","gameSuperSet":"rse","releaseDate":"2002-11-21","generation":3,"region":"hoenn","originMark":"none","pokedexes":["hoenn","national-rs"],"storage":{"numBoxes":14,"boxCapacity":30}},
{"id":"rs-s","name":"Sapphire","type":"game","gameSet":"rs","gameSuperSet":"rse","releaseDate":"2002-11-21","generation":3,"region":"hoenn","originMark":"none","pokedexes":["hoenn","national-rs"],"storage":{"numBoxes":14,"boxCapacity":30}},
{"id":"col","name":"Colosseum","type":"game","gameSet":null,"gameSuperSet":null,"releaseDate":"2003-11-21","generation":3,"region":"orre","originMark":"none","pokedexes":["col"],"storage":{"numBoxes":3,"boxCapacity":30,"symbols":["caught","shiny","shadow"]}},
{"id":"e","name":"Emerald","type":"game","gameSet":null,"gameSuperSet":"rse","releaseDate":"2004-09-16","generation":3,"region":"hoenn","originMark":"none","pokedexes":["hoenn","national-e"],"storage":{"numBoxes":14,"boxCapacity":30}},
{"id":"frlg","name":"FireRed & LeafGreen","type":"set","gameSet":null,"gameSuperSet":null,"releaseDate":"2004-01-29","generation":3,"region":"kanto","originMark":"none","pokedexes":["kanto","national-frlg"],"storage":{"numBoxes":14,"boxCapacity":30,"symbols":["caught","shiny"]}},
{"id":"frlg-fr","name":"FireRed","type":"game","gameSet":"frlg","gameSuperSet":null,"releaseDate":"2004-01-29","generation":3,"region":"kanto","originMark":"none","pokedexes":["kanto","national-frlg"],"storage":{"numBoxes":14,"boxCapacity":30}},
{"id":"frlg-lg","name":"LeafGreen","type":"game","gameSet":"frlg","gameSuperSet":null,"releaseDate":"2004-01-29","generation":3,"region":"kanto","originMark":"none","pokedexes":["kanto","national-frlg"],"storage":{"numBoxes":14,"boxCapacity":30}},
{"id":"xd","name":"XD: Gale of Darkness","type":"game","gameSet":null,"gameSuperSet":null,"releaseDate":"2005-08-04","generation":3,"region":"orre","originMark":"none","pokedexes":["xd"],"storage":{"numBoxes":3,"boxCapacity":30,"symbols":["caught","shiny","shadow"]}},
{"id":"dppt","name":"Diamond, Pearl & Platinum","type":"superset","gameSet":null,"gameSuperSet":null,"releaseDate":"2006-09-28","generation":1,"region":"sinnoh","originMark":"gb","pokedexes":[],"storage":{"numBoxes":18,"boxCapacity":30}},
{"id":"dp","name":"Diamond & Pearl","type":"set","gameSet":null,"gameSuperSet":"dppt","releaseDate":"2006-09-28","generation":4,"region":"sinnoh","originMark":"none","pokedexes":["sinnoh","national-dp"],"storage":{"numBoxes":18,"boxCapacity":30,"symbols":["caught","shiny"]}},
{"id":"dp-d","name":"Diamond","type":"game","gameSet":"dp","gameSuperSet":"dppt","releaseDate":"2006-09-28","generation":4,"region":"sinnoh","originMark":"none","pokedexes":["sinnoh","national-dp"],"storage":{"numBoxes":18,"boxCapacity":30}},
Expand Down
37 changes: 37 additions & 0 deletions data/games/col.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"id": "col",
"name": "Colosseum",
"generation": 3,
"type": "game",
"gameSet": null,
"gameSuperSet": null,
"codename": null,
"releaseDate": "2003-11-21",
"platforms": ["ngc"],
"region": "orre",
"originMark": "none",
"pokedexes": ["col"],
"storage": {
"numBoxes": 3,
"boxCapacity": 30,
"symbols": ["caught", "shiny", "shadow"]
},
"features": {
"training": false,
"shiny": true,
"items": true,
"gender": true,
"nature": true,
"ball": false,
"mega": false,
"zmove": false,
"gmax": false,
"alpha": false,
"tera": false,
"ribbons": false,
"marks": false
},
"obtainablePokemon": [],
"storablePokemon": [],
"eventPokemon": []
}
37 changes: 37 additions & 0 deletions data/games/xd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"id": "xd",
"name": "XD: Gale of Darkness",
"generation": 3,
"type": "game",
"gameSet": null,
"gameSuperSet": null,
"codename": null,
"releaseDate": "2005-08-04",
"platforms": ["ngc"],
"region": "orre",
"originMark": "none",
"pokedexes": ["xd"],
"storage": {
"numBoxes": 3,
"boxCapacity": 30,
"symbols": ["caught", "shiny", "shadow"]
},
"features": {
"training": false,
"shiny": true,
"items": true,
"gender": true,
"nature": true,
"ball": false,
"mega": false,
"zmove": false,
"gmax": false,
"alpha": false,
"tera": false,
"ribbons": false,
"marks": false
},
"obtainablePokemon": [],
"storablePokemon": [],
"eventPokemon": []
}
2 changes: 2 additions & 0 deletions data/pokedexes-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
{"id":"national-gsc","region":"johto","name":"National Gold/Silver/Crystal","baseDex":null},
{"id":"hoenn","region":"hoenn","name":"Hoenn Pokédex","baseDex":null,"pokeApiId":4},
{"id":"national-rs","region":"hoenn","name":"National Ruby/Sapphire/Emerald","baseDex":null,"pokeApiId":null},
{"id":"col","region":"orre","name":"Colosseum Pokédex","baseDex":null,"pokeApiId":null},
{"id":"national-e","region":"hoenn","name":"National - Emerald","baseDex":null,"pokeApiId":null},
{"id":"national-frlg","region":"kanto","name":"National FireRed/LeafGreen","baseDex":null},
{"id":"xd","region":"orre","name":"XD Pokédex","baseDex":null,"pokeApiId":null},
{"id":"sinnoh","region":"sinnoh","name":"Sinnoh Pokédex","baseDex":null,"pokeApiId":5},
{"id":"national-dp","region":"sinnoh","name":"National Diamond/Pearl","baseDex":null},
{"id":"sinnoh-pt","region":"sinnoh","name":"Sinnoh Pokédex 2.0","baseDex":null,"pokeApiId":6},
Expand Down
13 changes: 13 additions & 0 deletions data/pokedexes/orre/col.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"id": "col",
"name": "Colosseum Pokédex",
"region": "orre",
"generation": 3,
"gameIds": [
"col"
],
"pokeApiId": null,
"baseDex": null,
"entries": [
]
}
13 changes: 13 additions & 0 deletions data/pokedexes/orre/xd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"id": "xd",
"name": "XD Pokédex",
"region": "orre",
"generation": 3,
"gameIds": [
"xd"
],
"pokeApiId": null,
"baseDex": null,
"entries": [
]
}
2 changes: 1 addition & 1 deletion src/schemas/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const gameSchema = gameIndexItemSchema.extend({
codename: nameSchema.nullable(),
platforms: z
.array(
z.enum(['gb', 'gbc', 'gba', 'nds', '3ds', 'switch', 'mobile']),
z.enum(['gb', 'gbc', 'ngc', 'gba', 'nds', '3ds', 'switch', 'mobile']),
//.or(z.string())
)
.min(1),
Expand Down

0 comments on commit 19b6eda

Please sign in to comment.