Skip to content

Commit

Permalink
Fixed next trainer button tied to SS dex
Browse files Browse the repository at this point in the history
  • Loading branch information
TerraPrograms committed Nov 20, 2023
1 parent 8517ded commit 5b59f64
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions dist/honkalculate.html
Original file line number Diff line number Diff line change
Expand Up @@ -883,8 +883,8 @@
<script type="text/javascript" src="./calc/util.js?8fa0c7ff"></script>
<script type="text/javascript" src="./calc/stats.js?9220179f"></script>
<script type="text/javascript" src="./calc/data/species.js?7d33143e"></script>
<script type="text/javascript" src="./js/data/sets/gen9.js?abb84166"></script>
<script type="text/javascript" src="./js/data/sets/gen8.js?0870ccad"></script>
<script type="text/javascript" src="./js/data/sets/gen9.js?cd7d8e82"></script>
<script type="text/javascript" src="./js/data/sets/gen8.js?ecf43658"></script>
<script type="text/javascript" src="./js/data/sets/gen7.js?78168bde"></script>
<script type="text/javascript" src="./js/data/sets/gen6.js?2219279f"></script>
<script type="text/javascript" src="./js/data/sets/gen5.js?c8933737"></script>
Expand Down
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1669,8 +1669,8 @@ <h5>OHKO Colors</h5>
<script type="text/javascript" src="./calc/util.js?8fa0c7ff"></script>
<script type="text/javascript" src="./calc/stats.js?9220179f"></script>
<script type="text/javascript" src="./calc/data/species.js?7d33143e"></script>
<script type="text/javascript" src="./js/data/sets/gen9.js?abb84166"></script>
<script type="text/javascript" src="./js/data/sets/gen8.js?0870ccad"></script>
<script type="text/javascript" src="./js/data/sets/gen9.js?cd7d8e82"></script>
<script type="text/javascript" src="./js/data/sets/gen8.js?ecf43658"></script>
<script type="text/javascript" src="./js/data/sets/gen7.js?78168bde"></script>
<script type="text/javascript" src="./js/data/sets/gen6.js?2219279f"></script>
<script type="text/javascript" src="./js/data/sets/gen5.js?c8933737"></script>
Expand Down
2 changes: 1 addition & 1 deletion dist/js/data/sets/gen8.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/data/sets/gen9.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/data/sets/gen8.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/data/sets/gen9.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/js/shared_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -1072,10 +1072,10 @@ TR_NAMES = get_trainer_names()

$(".gen").change(function () {
/*eslint-disable */
gen = ~~$(this).val() || 8;
gen = ~~$(this).val() || 9;
GENERATION = calc.Generations.get(gen);
var params = new URLSearchParams(window.location.search);
if (gen === 8) {
if (gen === 9) {
params.delete('gen');
params = '' + params;
if (window.history && window.history.replaceState) {
Expand Down Expand Up @@ -1416,7 +1416,7 @@ function loadCustomList(id) {
}

function get_trainer_names() {
var all_poks = SETDEX_SS
var all_poks = SETDEX_SV
var trainer_names = []

for (const [pok_name, poks] of Object.entries(all_poks)) {
Expand Down Expand Up @@ -1501,7 +1501,7 @@ function selectFirstMon() {

function selectTrainer(value) {
localStorage.setItem("lasttimetrainer", value);
all_poks = SETDEX_SS
all_poks = SETDEX_SV
for (const [pok_name, poks] of Object.entries(all_poks)) {
var pok_tr_names = Object.keys(poks)
for (i in pok_tr_names) {
Expand Down Expand Up @@ -1797,7 +1797,7 @@ function switchIconDouble(){

$(document).ready(function () {
var params = new URLSearchParams(window.location.search);
var g = GENERATION[params.get('gen')] || 8;
var g = GENERATION[params.get('gen')] || 9;
$("#gen" + g).prop("checked", true);
$("#gen" + g).change();
$("#percentage").prop("checked", true);
Expand Down

0 comments on commit 5b59f64

Please sign in to comment.