added pregene vol 1 + webui fixes
This commit is contained in:
@@ -53,8 +53,10 @@ async function loadItems(itemSet, gene_edition, items_crew, items_stamp, items_s
|
||||
if(itemCounts[0] >= itemCounts[1]) $('#pregene-roll').attr('disabled', 'disabled')
|
||||
|
||||
$('.count').text('Unlocked items: ' + itemCounts[0] + "/" + itemCounts[1])
|
||||
if(itemSet === 1) {
|
||||
$('.setinfo').append('<p style="padding:5px">These items are only usable in Japan. Change region to Japan in the ea3-config.xml file.</p>')
|
||||
if(itemSet === 0) {
|
||||
$('.setinfo').append('<p class="jpn-excl" style="padding:5px">These items are only usable in Japan. Change region to Japan in the ea3-config.xml file.</p>')
|
||||
} else {
|
||||
$('.jpn-excl').remove()
|
||||
}
|
||||
|
||||
if('crew' in geneItems.items) {
|
||||
@@ -101,7 +103,7 @@ async function loadValgeneData(gene_edition) {
|
||||
$('#set_select').append('<option value=' + valGeneData.pregene[pregeneDataIndex].id + '>' + valGeneData.pregene[pregeneDataIndex].name + '</option>')
|
||||
}
|
||||
}
|
||||
|
||||
$('#set_select').val($("#set_select option").length - 1)
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
@@ -130,7 +132,7 @@ $(document).ready(function() {
|
||||
let gene_edition = document.getElementById("generator-edition").innerText;
|
||||
loadValgeneData(gene_edition)
|
||||
loadItems(1, gene_edition, items_crew, items_stamp, items_subbg, items_bgm, items_nemsys)
|
||||
|
||||
|
||||
$('#set_select').change(function() {
|
||||
$('.count').text('')
|
||||
$('.item_banners').empty()
|
||||
|
||||
@@ -1,13 +1,22 @@
|
||||
{
|
||||
"pregene": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Premium Generator 1 (Aqua Set)",
|
||||
"id": 0,
|
||||
"name": "Premium Generator (Aqua Set)",
|
||||
"items": {
|
||||
"crew": [131],
|
||||
"stamp": [69, 70, 71, 72, 73, 74, 75, 76, 77, 78],
|
||||
"subbg": [166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Premium Generator Vol. 1",
|
||||
"items": {
|
||||
"crew": [134],
|
||||
"stamp": [110, 111, 112, 113, 114, 115, 116, 117, 118, 119],
|
||||
"subbg": [200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223]
|
||||
}
|
||||
}
|
||||
],
|
||||
"valgene":[
|
||||
|
||||
Reference in New Issue
Block a user