Skip to content

Commit

Permalink
Add Gen6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
versx committed Dec 2, 2020
1 parent 2c90822 commit 3cec195
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/config.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"locale": "en",
"style": "dark",
"favicon": "default.png",
"maxPokemonId": 650,
"maxPokemonId": 721,
"lastNestMigration": "2019-03-07T01:00:00Z",
"showFooter": true,
"db": {
Expand Down
1 change: 1 addition & 0 deletions src/views/invasion-new.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<button id="select_gen3" type="button" class="btn btn-warning btn-sm">{{Select Gen3}}</button>
<button id="select_gen4" type="button" class="btn btn-warning btn-sm">{{Select Gen4}}</button>
<button id="select_gen5" type="button" class="btn btn-warning btn-sm">{{Select Gen5}}</button>
<button id="select_gen6" type="button" class="btn btn-warning btn-sm">{{Select Gen6}}</button>
<button id="select_rare" type="button" class="btn btn-success btn-sm">{{Select Rare}}</button>
<button id="select_ultra" type="button" class="btn btn-danger btn-sm">{{Select Ultra Rare}}</button>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/views/pokemon-new.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<button id="select_gen3" type="button" class="btn btn-warning btn-sm">{{Select Gen3}}</button>
<button id="select_gen4" type="button" class="btn btn-warning btn-sm">{{Select Gen4}}</button>
<button id="select_gen5" type="button" class="btn btn-warning btn-sm">{{Select Gen5}}</button>
<button id="select_gen6" type="button" class="btn btn-warning btn-sm">{{Select Gen6}}</button>
<button id="select_rare" type="button" class="btn btn-success btn-sm">{{Select Rare}}</button>
<button id="select_ultra" type="button" class="btn btn-danger btn-sm">{{Select Ultra Rare}}</button>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/views/pvp-new.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<button id="select_gen3" type="button" class="btn btn-warning btn-sm">{{Select Gen3}}</button>
<button id="select_gen4" type="button" class="btn btn-warning btn-sm">{{Select Gen4}}</button>
<button id="select_gen5" type="button" class="btn btn-warning btn-sm">{{Select Gen5}}</button>
<button id="select_gen6" type="button" class="btn btn-warning btn-sm">{{Select Gen6}}</button>
<button id="select_rare" type="button" class="btn btn-success btn-sm">{{Select Rare}}</button>
<button id="select_ultra" type="button" class="btn btn-danger btn-sm">{{Select Ultra Rare}}</button>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/views/raid-new.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<button id="select_gen3" type="button" class="btn btn-warning btn-sm">{{Select Gen3}}</button>
<button id="select_gen4" type="button" class="btn btn-warning btn-sm">{{Select Gen4}}</button>
<button id="select_gen5" type="button" class="btn btn-warning btn-sm">{{Select Gen5}}</button>
<button id="select_gen6" type="button" class="btn btn-warning btn-sm">{{Select Gen6}}</button>
<button id="select_rare" type="button" class="btn btn-success btn-sm">{{Select Rare}}</button>
<button id="select_ultra" type="button" class="btn btn-danger btn-sm">{{Select Ultra Rare}}</button>
<button id="select_raid5star" type="button" class="btn btn-danger btn-sm">{{Select 5 Star Raid}}</button>
Expand Down
7 changes: 7 additions & 0 deletions static/js/pokemon-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ $('#select_gen5').on('click', function() {
}
});
});
$('#select_gen6').on('click', function() {
$.each($('.item'), function(index, item) {
if (item.id > 649 && item.id < 722) {
selectItem(item);
}
});
});
$('#select_rare').on('click', function() {
$.each($('.item'), function(index, item) {
if (!pokemonRarity.common.includes(parseInt(item.id))) {
Expand Down
1 change: 1 addition & 0 deletions static/locales/_de.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"Select Gen3": "Gen3 auswählen",
"Select Gen4": "Gen4 auswählen",
"Select Gen5": "Gen5 auswählen",
"Select Gen6": "Gen6 auswählen",
"Select Rare": "Seltene auswählen",
"Select Ultra Rare": "Ultra Seltene auswählen",
"Select 5 Star Raid": "5 Sterne Raids",
Expand Down
6 changes: 2 additions & 4 deletions static/locales/_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"Select Gen3": "Select Gen3",
"Select Gen4": "Select Gen4",
"Select Gen5": "Select Gen5",
"Select Gen6": "Select Gen6",
"Select Rare": "Select Rare",
"Select Ultra Rare": "Select Ultra Rare",
"Select 5 Star Raid": "Select 5 Star Raid",
Expand Down Expand Up @@ -100,8 +101,5 @@
"Location": "Location",
"Max Distance": "Max Distance",
"Phone Number": "Phone Number",
"Value": "Value",
"poke_7": "poke_7",
"poke_132": "poke_132",
"poke_25": "poke_25"
"Value": "Value"
}
1 change: 1 addition & 0 deletions static/locales/_es.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"Select Gen3": "Select Gen3",
"Select Gen4": "Select Gen4",
"Select Gen5": "Select Gen5",
"Select Gen6": "Select Gen6",
"Select Rare": "Select Rare",
"Select Ultra Rare": "Select Ultra Rare",
"Select 5 Star Raid": "Select 5 Star Raid",
Expand Down

0 comments on commit 3cec195

Please sign in to comment.