Compare commits
1 Commits
2ef0919097
...
17dcaf311e
Author | SHA1 | Date | |
---|---|---|---|
17dcaf311e |
@ -19,6 +19,14 @@
|
||||
sameSite: 'strict',
|
||||
});
|
||||
}
|
||||
|
||||
const stats = [
|
||||
charStats.power || '?',
|
||||
charStats.guard || '?',
|
||||
charStats.magic || '?',
|
||||
charStats.speed || '?',
|
||||
]
|
||||
$('.char-stats-display').text('[' + stats.join('/') + ']');
|
||||
};
|
||||
|
||||
window.saga = {
|
||||
@ -261,6 +269,7 @@
|
||||
checkLocations();
|
||||
checkApprentices();
|
||||
checkCharStats();
|
||||
onCharStatChange();
|
||||
window.saga.sortData();
|
||||
window.saga.filterApprentices();
|
||||
window.saga.filterLocations();
|
||||
@ -314,8 +323,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
update();
|
||||
|
||||
// scale all enemy images to fit in a 64x64 square
|
||||
$('.enemy-sprite').each((i, el) => {
|
||||
const $el = $(el);
|
||||
@ -356,9 +363,12 @@
|
||||
case 'magic':
|
||||
case 'speed':
|
||||
$(`#char-${stat}`).val(data[stat]);
|
||||
window.saga.updateCharStat(stat, Number(data[stat]));
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
onCharStatChange();
|
||||
});
|
||||
|
||||
const $enemyInfoModal = $('#enemy-info-modal');
|
||||
@ -722,4 +732,6 @@
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
update();
|
||||
}(window));
|
||||
|
@ -47,8 +47,9 @@ html
|
||||
li.nav-item: a.nav-link(href="/accessories" class=(context === 'accessories' ? 'active' : '')) Accessories
|
||||
li.nav-item: a.nav-link(href="/exp" class=(context === 'exp' ? 'active' : '')) Experience
|
||||
li.nav-item: a.nav-link(href="/levels" class=(context === 'levels' ? 'active' : '')) Levels
|
||||
div
|
||||
button.btn.btn-secondary.btn-sm(data-toggle="modal" data-target="#char-stats-modal") Character stats…
|
||||
div: button.btn.btn-secondary.btn-sm(data-toggle="modal" data-target="#char-stats-modal")
|
||||
| Set character stats
|
||||
small.ml-1: tt.char-stats-display
|
||||
div.tab-content
|
||||
div.tab-pane.show.active.mt-2
|
||||
block tab-content
|
||||
|
Loading…
x
Reference in New Issue
Block a user