feat(pokedex): ajoute pokedex g2

This commit is contained in:
Kazhnuz Klappsthul 2024-02-09 15:14:55 +01:00
parent 1c201112d8
commit 1c063862fe
1063 changed files with 39600 additions and 0 deletions

38275
_data/pokegold.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,67 @@
---
layout: layouts/parent.njk
---
<main id="skip" class="pokepage">
<div>
{{ content | safe }}
</div>
</main>
<aside id="more-info">
<div class="card">
<div>Retour au <a href="/pokedex/g2">pokédex</a></div>
</div>
<figure class="card" style="text-align:center;">
<img src="/img/pret/pokegold/{{ pokemon.sprite }}/front_gold.png" alt="Sprite de {{ pokemon.namefr }} dans Pokemon Or" />
<img src="/img/pret/pokegold/{{ pokemon.sprite }}/front_silver.png" alt="Sprite de {{ pokemon.namefr }} dans Pokemon Argent" />
<figcaption>{{ pokemon.namefr }} dans Or, Argent</figcaption>
</figure>
<div class="card maininfo" aria-label="Informations principales">
<ul>
<li><strong>Nom</strong>: {{ pokemon.namefr }}</li>
<li><strong>Nom en</strong>: {{ pokemon.nameen }}</li>
<li><strong>Nom jp</strong>: {{ pokemon.namejp }}</li>
<li><strong>N° Dex (Kanto)</strong>: {{ pokemon.baseStats.dex }}</li>
<li><strong>N° Dex (Johto)</strong>: {{ pokemon.internalId }}</li>
</ul>
</div>
<div class="card maininfo" aria-label="Donnée">
<ul>
<li><strong>{{ pokemon.pokedex.species }}</strong></li>
<li><strong>Taille</strong>: {{ pokemon.pokedex.height }}</li>
<li><strong>Poids</strong>: {{ pokemon.pokedex.weight }}</li>
<li><strong>Types</strong>: {{ pokemon.baseStats.types[0] }}{%- if pokemon.baseStats.types[0] !== pokemon.baseStats.types[1] -%}, {{ pokemon.baseStats.types[1] }} {%- endif -%}</li>
</ul>
</div>
<div class="card maininfo" aria-label="Capture">
<ul>
<li><strong>Base capture</strong>: {{ pokemon.baseStats.catch_rate }}</li>
<li><strong>Bonus exp</strong>: {{ pokemon.baseStats.base_exp }}</li>
<li><strong>Evol exp</strong>: {{ pokemon.baseStats.growth_rate }}</li>
<li><strong>Objets</strong>:
{% if pokemon.baseStats.items[0] !== "?" and pokemon.baseStats.items[1] !== "?" and pokemon.baseStats.items[1] !== pokemon.baseStats.items[0] -%}
{{ pokemon.baseStats.items[0] }}, {{ pokemon.baseStats.items[1] }}
{%- endif -%}
{% if pokemon.baseStats.items[0] !== "?" and pokemon.baseStats.items[1] !== "?" and pokemon.baseStats.items[1] === pokemon.baseStats.items[0] -%}
{{ pokemon.baseStats.items[0] }}
{%- endif -%}
{% if pokemon.baseStats.items[0] === "?" and pokemon.baseStats.items[1] !== "?" -%}
{{ pokemon.baseStats.items[1] }}
{%- endif -%}
{% if pokemon.baseStats.items[0] !== "?" and pokemon.baseStats.items[1] === "?" -%}
{{ pokemon.baseStats.items[0] }}
{%- endif -%}
{% if pokemon.baseStats.items[0] === "?" and pokemon.baseStats.items[1] === "?" -%}
Aucun
{%- endif -%}
</li>
</ul>
</div>
<div class="card maininfo" aria-label="Reproduction">
<ul>
<li><strong>Œufs</strong>: {{ pokemon.baseStats.eggs[0] }}{%- if pokemon.baseStats.eggs[0] !== pokemon.baseStats.eggs[1] -%}, {{ pokemon.baseStats.eggs[1] }} {%- endif -%}</li>
<li><strong>Sexe</strong>: {{ pokemon.baseStats.gender }}</li>
<li><strong>Éclosion</strong>: {{ pokemon.baseStats.eclosion * 256 }} pas</li>
</ul>
</div>
</aside>

View File

@ -0,0 +1,55 @@
---
layout: layouts/pokelist.njk
eleventyNavigation:
parent: Autour des jeux
key: Pokédex (GSC)
order: 1
---
# Pokédex Génération 2
Cette page présente les pokémon possible à obtenir dans la seconde génération de Pokémon (Or, Argent, Cristal).
Les données de ce pokedex sont récupéré directement des dessamblages pokered et pokeyellow (ainsi que la traduction pokered-fr) et transformée via un script en un format de donnée pour que le site puisse les lires.
Cliquez sur le nom d'un pokémon pour accéder à ses informations.
## Liste des pokémons
<table class="pokedex">
<thead>
<tr>
<th>Dex</th>
<th>Nom</th>
<th>Types</th>
<th>PV</th>
<th>Atk</th>
<th>Def</th>
<th>Spd</th>
<th>Spe.Atk</th>
<th>Spe.Def</th>
</tr>
</thead>
<tbody>
{%- for pokemon in pokegold -%}
<tr>
<td>{{ pokemon.baseStats.dex }} </td>
<td> <a href="/pokedex/g2/{{ pokemon.namefr | replace("", "F") | replace("", "M") | slugify }}">{{ pokemon.namefr }}</a> </td>
<td> {{ pokemon.baseStats.types[0] }}{%- if pokemon.baseStats.types[0] !== pokemon.baseStats.types[1] -%}, {{ pokemon.baseStats.types[1] }} {%- endif -%} </td>
<td>{{ pokemon.baseStats.stats.hp }}</td>
<td>{{ pokemon.baseStats.stats.atk }}</td>
<td>{{ pokemon.baseStats.stats.def }}</td>
<td>{{ pokemon.baseStats.stats.spd }}</td>
<td>{{ pokemon.baseStats.stats.speatk }}</td>
<td>{{ pokemon.baseStats.stats.spedef }}</td>
</tr>
{%- endfor -%}
<tbody>
</table>
## Crédits
- Données venant de pokered, pokeyellow
- Traductions récupérés via pokered-fr
- Pokedex inspiré de celui du Monde des Pokémon de Pix@lgo

View File

@ -0,0 +1,191 @@
---
pagination:
data: pokegold
size: 1
alias: pokemon
permalink: "pokedex/g2/{{ pokemon.namefr | replace('♀', 'F') | replace('♂', 'M') | slugify }}/"
layout: layouts/pokedex2.njk
---
<div style="display:flex;justify-content:space-between;">
<div>
{%- if pokemon.baseStats.dex > 1 -%}<a href="/pokedex/g2/{{ pokegold[pokemon.baseStats.dex - 2].namefr | replace('♀', 'F') | replace('♂', 'M') | slugify }}">← {{ pokegold[pokemon.baseStats.dex - 2].namefr }}</a> {%- endif -%}
</div>
<div>
{%- if pokemon.baseStats.dex < 251 -%}<a href="/pokedex/g2/{{ pokegold[pokemon.baseStats.dex].namefr | replace('♀', 'F') | replace('♂', 'M') | slugify }}">{{ pokegold[pokemon.baseStats.dex].namefr }} →</a> {%- endif -%}
</div>
</div>
# {{ pokemon.namefr }}
{{ pokemon.namefr }} ( {{ pokemon.nameen }} en anglais ; {{ pokemon.namejp }} en japonais ) est le pokémon n°{{ pokemon.baseStats.dex }} du pokedex de Kanto, de type {{ pokemon.baseStats.types[0] }}{% if pokemon.baseStats.types[0] !== pokemon.baseStats.types[1] %} et {{ pokemon.baseStats.types[1] }} {%- endif -%}. {% if pokemon.baseStats.dex <= 151 -%} Il est apparu dans la première génération. {%- endif %}{% if pokemon.baseStats.dex > 151 -%} Il est apparu dans la seconde génération. {%- endif %}
## Généralité
### Statistiques
| | PV | ATK | DEF | SPD | SPE.ATK | SPE.DEF |
|:-:|:--:|:---:|:---:|:---:|:-------:|:-------:|
| **Base :** | {{ pokemon.baseStats.stats.hp }} | {{ pokemon.baseStats.stats.atk }} | {{ pokemon.baseStats.stats.def }} | {{ pokemon.baseStats.stats.spd }} | {{ pokemon.baseStats.stats.speatk }} | {{ pokemon.baseStats.stats.spedef }} |
### Évolutions
<table>
<thead>
<tr>
<th>Évolue en</th>
<th>via</th>
</tr>
</thead>
<tbody>
{%- for evolution in pokemon.evoMoves.evolutionItems -%}
<tr>
<td><a href="/pokedex/g1/{{ evolution.pokemon | replace("", "F") | replace("", "M") | slugify }}">{{ evolution.pokemon }} </td>
<td>Avec un(e) {{ evolution.item }} </td>
</tr>
{%- endfor -%}
{%- for evolution in pokemon.evoMoves.evolutionLevel -%}
<tr>
<td><a href="/pokedex/g1/{{ evolution.pokemon | replace("", "F") | replace("", "M") | slugify }}">{{ evolution.pokemon }} </td>
<td> Au niveau {{ evolution.level }} </td>
</tr>
{%- endfor -%}
{%- for evolution in pokemon.evoMoves.evolutionTrade -%}
<tr>
<td><a href="/pokedex/g1/{{ evolution.pokemon | replace("", "F") | replace("", "M") | slugify }}">{{ evolution.pokemon }} </td>
<td> Par échange {% if evolution.item !== "-1" -%} ( Avec un(e) {{ evolution.item }} ) {%- endif -%} </td>
</tr>
{%- endfor -%}
{%- for evolution in pokemon.evoMoves.evolutionHappiness -%}
<tr>
<td><a href="/pokedex/g1/{{ evolution.pokemon | replace("", "F") | replace("", "M") | slugify }}">{{ evolution.pokemon }} </td>
<td> Par bohneur ( {{ evolution.time }} ) </td>
</tr>
{%- endfor -%}
{%- for evolution in pokemon.evoMoves.evolutionStat -%}
<tr>
<td><a href="/pokedex/g1/{{ evolution.pokemon | replace("", "F") | replace("", "M") | slugify }}">{{ evolution.pokemon }} </td>
<td> Au niveau {{ evolution.niveau }} ( {{ evolution.stat }} ) </td>
</tr>
{%- endfor -%}
{%- if (pokemon.evoMoves.nbrEvolution <= 0 ) -%}
<tr>
<td colspan="2"> <em>Stade Final</em> </td>
</tr>
{%- endif -%}
</tbody>
</table>
## Emplacements
<table class="pokedex">
<thead>
<tr>
<th></th>
<th>Emplacement</th>
</tr>
</thead>
<tbody>
<tr>
<th>Or </th>
<td>
{%- for encounterList in pokemon.encounters.gold -%}
{% if encounterList.prefix !== "" %}<strong>{{ encounterList.prefix }}</strong> : {% endif -%} {{ encounterList.list | join(" ; ") }}<br />
{%- endfor -%}
</td>
</tr>
<tr>
<th>Argent </th>
<td>
{%- for encounterList in pokemon.encounters.silver -%}
{% if encounterList.prefix !== "" %}<strong>{{ encounterList.prefix }}</strong> : {% endif -%} {{ encounterList.list | join(" ; ") }}<br />
{%- endfor -%}
</td>
</tr>
<tr>
<th>Cristal </th>
<td>
{%- for encounterList in pokemon.encounters.crystal -%}
{% if encounterList.prefix !== "" %}<strong>{{ encounterList.prefix }}</strong> : {% endif -%} {{ encounterList.list | join(" ; ") }}<br />
{%- endfor -%}
</td>
</tr>
</tbody>
</table>
## Attaques
<div class="grid" style="display:flex;">
<div>
<table>
<thead>
<tr>
<th>Niv</th>
<th>Attaque</th>
</tr>
</thead>
<tbody>
{%- for move in pokemon.evoMoves.moves -%}
<tr>
<td> {{ move.level }} </td>
<td>{{ move.move }} </td>
</tr>
{%- endfor -%}
{%- if pokemon.evoMoves.nbrMoves == 0 -%}
<tr>
<td colspan="2"> <em>Aucune attaque apprise par niveau</em> </td>
</tr>
{%- endif -%}
</tbody>
</table>
{%- if pokemon.eggMoves.nbrMoves != 0 -%}
<table>
<thead>
<tr>
<th>Par reproduction</th>
</tr>
</thead>
<tbody>
{%- for move in pokemon.eggMoves.moves -%}
<tr>
<td>{{ move }} </td>
</tr>
{%- endfor -%}
</tbody>
</table>
{%- endif %}
*(Note : certaines attaques peuvent se retrouver en double dans les tableaux.)*
</div>
<div>
<table>
<thead>
<tr>
<th>Par CT / CS</th>
</tr>
</thead>
<tbody>
{%- for move in pokemon.baseStats.tmhm -%}
<tr>
<td>{{ move }} </td>
</tr>
{%- endfor -%}
{%- if pokemon.baseStats.nbrTmHm == 0 -%}
<tr>
<td> <em>Aucune attaque apprise par CT/CS</em> </td>
</tr>
{%- endif -%}
</tbody>
</table>
</div>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

View File

@ -0,0 +1,4 @@
RGB 28, 24, 10
RGB 20, 09, 19

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 646 B

View File

@ -0,0 +1,4 @@
RGB 22, 09, 23
RGB 12, 09, 21

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

View File

@ -0,0 +1,4 @@
RGB 25, 16, 18
RGB 22, 03, 25

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

View File

@ -0,0 +1,4 @@
RGB 19, 19, 03
RGB 21, 02, 21

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

View File

@ -0,0 +1,4 @@
RGB 24, 20, 21
RGB 14, 05, 31

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 668 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

View File

@ -0,0 +1,4 @@
RGB 18, 19, 11
RGB 20, 10, 30

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

View File

@ -0,0 +1,4 @@
RGB 24, 17, 15
RGB 19, 17, 01

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

View File

@ -0,0 +1,4 @@
RGB 21, 03, 26
RGB 05, 09, 29

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 787 B

View File

@ -0,0 +1,4 @@
RGB 19, 26, 31
RGB 13, 13, 22

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

View File

@ -0,0 +1,4 @@
RGB 26, 20, 05
RGB 18, 09, 07

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

View File

@ -0,0 +1,4 @@
RGB 27, 20, 13
RGB 25, 15, 00

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 702 B

View File

@ -0,0 +1,4 @@
RGB 17, 20, 13
RGB 08, 07, 27

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 485 B

View File

@ -0,0 +1,4 @@
RGB 28, 11, 06
RGB 11, 14, 25

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

View File

@ -0,0 +1,4 @@
RGB 20, 20, 07
RGB 20, 10, 21

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 740 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

View File

@ -0,0 +1,4 @@
RGB 14, 21, 07
RGB 16, 16, 20

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 B

View File

@ -0,0 +1,4 @@
RGB 31, 13, 29
RGB 14, 13, 24

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

View File

@ -0,0 +1,4 @@
RGB 20, 28, 11
RGB 31, 10, 06

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

View File

@ -0,0 +1,4 @@
RGB 31, 15, 23
RGB 15, 31, 00

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

View File

@ -0,0 +1,4 @@
RGB 27, 24, 06
RGB 31, 12, 17

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

View File

@ -0,0 +1,4 @@
RGB 31, 15, 15
RGB 15, 04, 18

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

View File

@ -0,0 +1,4 @@
RGB 27, 25, 19
RGB 13, 19, 01

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

View File

@ -0,0 +1,4 @@
RGB 20, 15, 21
RGB 08, 21, 14

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 B

View File

@ -0,0 +1,4 @@
RGB 31, 24, 06
RGB 31, 16, 02

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

Some files were not shown because too many files have changed in this diff Show More