Skip to content

Commit

Permalink
refactor(games): BREAKING - split game availability data into dedicat…
Browse files Browse the repository at this point in the history
…ed game entry files
  • Loading branch information
itsjavi committed Aug 18, 2024
1 parent 3a616d8 commit 2795ce6
Show file tree
Hide file tree
Showing 1,636 changed files with 25,870 additions and 34,421 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
data/games.json
data/pokemon.json
data/pokedexes.json
data/boxpresets.json
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@ The `-index.json` data files will be rebuilt automatically, using the data from

- Repository: http://github.com/supeffective/dataset
- API Reference: https://www.jsdocs.io/package/@supeffective/dataset

## Dev Notes

- Make sure the dist files are always less than 2MB. If they are bigger, frameworks like Next.js will have trouble
caching the requests when using `fetch`.
68 changes: 68 additions & 0 deletions data/games-index.json

Large diffs are not rendered by default.

68 changes: 0 additions & 68 deletions data/games.json

This file was deleted.

41 changes: 41 additions & 0 deletions data/games/b2w2-b2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"id": "b2w2-b2",
"name": "Black 2",
"generation": 5,
"type": "game",
"gameSet": "b2w2",
"gameSuperSet": "bwb2w2",
"codename": "Swan",
"releaseDate": "2012-06-23",
"platforms": [
"nds"
],
"region": "unova",
"originMark": "none",
"pokedexes": [
"unova-b2w2",
"national-b2w2"
],
"features": {
"training": false,
"shiny": true,
"items": true,
"gender": true,
"nature": true,
"ball": true,
"mega": true,
"zmove": true,
"gmax": true,
"alpha": true,
"tera": true,
"ribbons": true,
"marks": true
},
"storage": {
"numBoxes": 24,
"boxCapacity": 30
},
"obtainablePokemon": [],
"storablePokemon": [],
"eventPokemon": []
}
43 changes: 43 additions & 0 deletions data/games/b2w2-w2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"id": "b2w2-w2",
"name": "White 2",
"generation": 5,
"type": "game",
"gameSet": "b2w2",
"gameSuperSet": "bwb2w2",
"codename": "Swan",
"releaseDate": "2012-06-23",
"platforms": [
"nds"
],
"region": "unova",
"originMark": "none",
"pokedexes": [
"unova-b2w2",
"national-b2w2"
],
"features": {
"training": false,
"shiny": true,
"items": true,
"gender": true,
"nature": true,
"ball": true,
"mega": true,
"zmove": true,
"gmax": true,
"alpha": true,
"tera": true,
"ribbons": true,
"marks": true
},
"storage": {
"numBoxes": 24,
"boxCapacity": 30
},
"obtainablePokemon": [
"butterfree-f"
],
"storablePokemon": [],
"eventPokemon": []
}
Loading

0 comments on commit 2795ce6

Please sign in to comment.