conf
This commit is contained in:
@@ -46,8 +46,7 @@ export const INFORMATION6 = {
|
||||
'2022071200': ['[img:ver06/info_psd.ifs:hexa_diver_220714]'],
|
||||
'2022081600': ['[img:ver06/info_psd.ifs:hexa_diver_220714]', '[img:ver06/info_psd.ifs:hexa_diver_220818]'],
|
||||
'2022083000': ['[img:ver06/info_psd.ifs:hexa_diver_220714]', '[img:ver06/info_psd.ifs:hexa_diver_220818]', '[img:ver06/info_psd.ifs:paseli_present_220901]'],
|
||||
'2022101800': ['[img:ver06/info_psd.ifs:hexa_diver_220714]', '[img:ver06/info_psd.ifs:hexa_diver_220818]', '[img:ver06/info_psd.ifs:paseli_present_220901]'],
|
||||
'2022122001': ['[img:info/konosuba_221006.png]', '[img:info/bemaniautumn_221101.png]', '[img:info/paseli_festival_221220.png]', '[img:info/pregene_kureha_221222.png]', '[img:info/voltefactory_221201.png]']
|
||||
'2022101800': ['[img:ver06/info_psd.ifs:hexa_diver_220714]', '[img:ver06/info_psd.ifs:hexa_diver_220818]', '[img:ver06/info_psd.ifs:paseli_present_220901]']
|
||||
}
|
||||
|
||||
export const MISSINGSONGS6 = [
|
||||
@@ -896,7 +895,7 @@ export const VALGENE = {
|
||||
},
|
||||
{
|
||||
type: 17,
|
||||
item_ids: [38, 39, 40, 41, 42]
|
||||
item_ids: [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68]
|
||||
},
|
||||
{
|
||||
type: 18,
|
||||
@@ -904,7 +903,7 @@ export const VALGENE = {
|
||||
},
|
||||
{
|
||||
type: 19,
|
||||
item_ids: [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68]
|
||||
item_ids: [38, 39, 40, 41, 42]
|
||||
},
|
||||
{
|
||||
type: 20,
|
||||
|
||||
@@ -337,7 +337,7 @@ export const common: EPR = async (info, data, send) => {
|
||||
})
|
||||
})
|
||||
|
||||
if(U.GetConfig('april_fools') || currentDate.substring(0,3) === '4/1') {
|
||||
if(currentDate.substring(0,3) === '4/1') {
|
||||
console.log('Using April Fools Event')
|
||||
events.push('APRIL_GRACE');
|
||||
events.push('EVENTDATE_APRILFOOL');
|
||||
@@ -352,11 +352,6 @@ export const common: EPR = async (info, data, send) => {
|
||||
}
|
||||
}
|
||||
|
||||
if(U.GetConfig('new_year_special')){
|
||||
console.log('Using New Year Special BGM')
|
||||
events.push('NEW_YEAR_2022');
|
||||
}
|
||||
|
||||
send.object(
|
||||
{
|
||||
valgene: {
|
||||
@@ -424,12 +419,6 @@ export const common: EPR = async (info, data, send) => {
|
||||
},
|
||||
{ encoding: 'utf8' }
|
||||
);
|
||||
// function(value) {
|
||||
|
||||
// },
|
||||
// function(error) {
|
||||
// console.log('read error: ' + error)
|
||||
// }
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
|
||||
@@ -490,8 +490,11 @@ export const preGeneRoll = async (data: {
|
||||
|
||||
let unobtainedItems = preGeneSet.items[Object.keys(preGeneSet.items)[rollWhat]].map((x) => x)
|
||||
data.items.forEach(item => {
|
||||
if(item['type'] == itemId[Object.keys(preGeneSet.items)[rollWhat]] && preGeneSet.items[Object.keys(preGeneSet.items)[rollWhat]].includes(item['id'])) {
|
||||
unobtainedItems.splice(unobtainedItems.indexOf(item['id']), 1)
|
||||
let checkId = 0;
|
||||
checkId = item['id']
|
||||
if(item['type'] == 17) checkId = (item['id'] / 4)
|
||||
if(item['type'] == itemId[Object.keys(preGeneSet.items)[rollWhat]] && preGeneSet.items[Object.keys(preGeneSet.items)[rollWhat]].includes(checkId)) {
|
||||
unobtainedItems.splice(unobtainedItems.indexOf(checkId), 1)
|
||||
}
|
||||
})
|
||||
if(unobtainedItems.length > 0) {
|
||||
@@ -499,20 +502,20 @@ export const preGeneRoll = async (data: {
|
||||
console.log("Rolled item id: " + unobtainedItems[randomItemIndex] + " | item type: " + itemId[Object.keys(preGeneSet.items)[rollWhat]])
|
||||
if(itemId[Object.keys(preGeneSet.items)[rollWhat]] == 17) {
|
||||
for(let stampID = (unobtainedItems[randomItemIndex] * 4) - 3; stampID <= (unobtainedItems[randomItemIndex] * 4); stampID++) {
|
||||
DB.Insert(data.refid, {
|
||||
DB.Upsert(data.refid, {
|
||||
"collection": "item",
|
||||
"type": itemId[Object.keys(preGeneSet.items)[rollWhat]],
|
||||
"id": stampID,
|
||||
"param": 1
|
||||
})
|
||||
"id": stampID },
|
||||
{$set: {"param": 1}}
|
||||
)
|
||||
}
|
||||
} else {
|
||||
DB.Insert(data.refid, {
|
||||
DB.Upsert(data.refid, {
|
||||
"collection": "item",
|
||||
"type": itemId[Object.keys(preGeneSet.items)[rollWhat]],
|
||||
"id": unobtainedItems[randomItemIndex],
|
||||
"param": 1
|
||||
})
|
||||
"id": unobtainedItems[randomItemIndex] },
|
||||
{$set: {"param": 1}}
|
||||
)
|
||||
}
|
||||
let finalItemType = (Object.keys(preGeneSet.items)[rollWhat] === 'subbg') ? 'bg' : Object.keys(preGeneSet.items)[rollWhat]
|
||||
await IO.WriteFile('webui/asset/logs/preGeneRollResult.json', JSON.stringify({'id': unobtainedItems[randomItemIndex], 'type': finalItemType}))
|
||||
|
||||
@@ -31,17 +31,16 @@ export function register() {
|
||||
R.Contributor("ovv (this fork)");
|
||||
R.GameCode('KFC');
|
||||
|
||||
R.Config('sdvx_eg_root_dir', { type: 'string', needRestart: true, default: '', name: 'Exceed Gear Data Directory', desc: 'The root directory of your SDVX Exceed Gear game files (for asset copying)'});
|
||||
R.Config('unlock_all_valk_items', { type: 'boolean', default: false, name:'Unlock All Valkyrie and Premium Items', desc: 'Unlock Nemsys, BGM, Submonitor BG and Stamp Items (Valk crews not included; check \'unlock all navigators\' option)'});
|
||||
R.Config('enable_valk_songs' ,{ type: 'boolean', default: false, name:'Enable Valkyrie Model Songs', desc:'Unlock the valkyrie model songs on non-valkyrie mode.'});
|
||||
R.Config('arena_szn',{ type: 'string', options: Object.keys(ARENA), default: 'Set 1 (04/25/22)', name: 'Arena Station Item Set', desc: 'Choose which season set of items in the arena station you want to show up in arena station'});
|
||||
R.Config('x_record', {type: 'boolean', default: false, name: 'X-Record', desc: 'Activates X-record. 10 VM and 1 LM points per play.'})
|
||||
R.Config('enable_valk_songs' ,{ type: 'boolean', default: false, name:'Enable Valkyrie Model Songs', desc:'Enable the valkyrie model songs on non-valkyrie mode.'});
|
||||
// R.Config('new_year_special',{ type: 'boolean', default: false, name:'Use New Year Special', desc:'Enable New Year Special BGM for login (doesn\'t work right now)'});
|
||||
// R.Config('april_fools',{ type: 'boolean', default: false, name:'April Fools', desc:'Enable April Fools Event (doesn\'t work properly right now)'});
|
||||
R.Config('use_blasterpass',{ type: 'boolean', default: true, name:'Use Blaster Pass', desc:'Enable Blaster Pass for VW and EG'});
|
||||
R.Config('unlock_all_valk_items', { type: 'boolean', default: false, name:'Unlock All Valkyrie and Premium Items', desc: 'Unlock Nemsys, BGM, Submonitor BG and Stamp Items (Valk crews not included; check \'unlock all navigators\' option)'});
|
||||
R.Config('unlock_all_songs', { type: 'boolean', default: false, name:'Unlock All Songs'});
|
||||
R.Config('unlock_all_navigators', { type: 'boolean', default: false, name:'Unlock All Navigators'} );
|
||||
R.Config('unlock_all_appeal_cards', { type: 'boolean', default: false, name:'Unlock All Appeal Cards'});
|
||||
R.Config('use_blasterpass',{ type: 'boolean', default: true, name:'Use Blaster Pass', desc:'Enable Blaster Pass for VW and EG'});
|
||||
R.Config('new_year_special',{ type: 'boolean', default: false, name:'Use New Year Special', desc:'Enable New Year Special BGM for login (doesn\'t work right now)'});
|
||||
R.Config('april_fools',{ type: 'boolean', default: false, name:'April Fools', desc:'Enable April Fools Event (doesn\'t work properly right now)'});
|
||||
R.Config('sdvx_eg_root_dir', { type: 'string', needRestart: true, default: '', name: 'Exceed Gear Data Directory', desc: 'The root directory of your SDVX Exceed Gear game files (for asset copying)'});
|
||||
R.Config('use_information' ,{ type: 'boolean', default: true, name:'Use Information', desc:'Enable the information section after entry.'});
|
||||
R.Config('use_asphyxia_gameover',{ type: 'boolean', default: true, name:'Use Asphyxia Gameover', desc:'Enable the Asphyxia gameover message after ending the game.'})
|
||||
|
||||
|
||||
@@ -41,9 +41,9 @@ async function getGeneratorEditionItems(gene_edition, itemSet) {
|
||||
return data
|
||||
})
|
||||
if(gene_edition === 'valkyrie') {
|
||||
return valGeneData.valgene.find(valgene => valgene.id === itemSet)
|
||||
return valGeneData.valgene[itemSet - 1]
|
||||
} else {
|
||||
return valGeneData.pregene.find(pregene => pregene.id === itemSet)
|
||||
return valGeneData.pregene[itemSet - 1]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,9 +51,10 @@ async function loadItems(itemSet, gene_edition, items_crew, items_stamp, items_s
|
||||
let geneItems = await getGeneratorEditionItems(gene_edition, itemSet)
|
||||
let itemCounts = countGeneItems(geneItems, items_crew, items_stamp, items_subbg, items_bgm, items_nemsys)
|
||||
if(itemCounts[0] >= itemCounts[1]) $('#pregene-roll').attr('disabled', 'disabled')
|
||||
else $('#pregene-roll').removeAttr('disabled')
|
||||
|
||||
$('.count').text('Unlocked items: ' + itemCounts[0] + "/" + itemCounts[1])
|
||||
if(itemSet === 0) {
|
||||
if(itemSet === 1) {
|
||||
$('.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()
|
||||
@@ -103,10 +104,10 @@ 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)
|
||||
$('#set_select').val($("#set_select option").length)
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$(document).ready(async function() {
|
||||
if(document.getElementById("data-pass-unlock-all").innerText === 'true') {
|
||||
$('.card-content').text("The \"Unlock All Valkyrie and Premium Items\" option is enabled. You wouldn't need this.")
|
||||
$('#pregene-roll').attr('disabled')
|
||||
@@ -130,8 +131,8 @@ $(document).ready(function() {
|
||||
let items_bgm = JSON.parse(document.getElementById("data-pass-bgm").innerText);
|
||||
let items_nemsys = JSON.parse(document.getElementById("data-pass-nemsys").innerText);
|
||||
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)
|
||||
await loadValgeneData(gene_edition)
|
||||
loadItems($('#set_select').val(), gene_edition, items_crew, items_stamp, items_subbg, items_bgm, items_nemsys)
|
||||
|
||||
$('#set_select').change(function() {
|
||||
$('.count').text('')
|
||||
@@ -143,7 +144,6 @@ $(document).ready(function() {
|
||||
$('#pregene-roll').attr('disabled', 'disabled')
|
||||
if(gene_edition === 'premium' && window.location.search.match(/(premium)/g) != undefined) {
|
||||
let geneItems = await getGeneratorEditionItems(gene_edition, parseInt($('#set_select').val()))
|
||||
console.log(geneItems)
|
||||
if(countGeneItems(geneItems, items_crew, items_stamp, items_subbg, items_bgm, items_nemsys)[0] >= countGeneItems(geneItems, items_crew, items_stamp, items_subbg, items_bgm, items_nemsys)[1]) {
|
||||
alert("All items have been unlocked already.")
|
||||
} else {
|
||||
@@ -165,4 +165,4 @@ $(document).ready(function() {
|
||||
alert("Not premium generator: a precaution")
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -10,7 +10,12 @@ function getImageFileFormat(assetType, id) {
|
||||
}
|
||||
|
||||
function checkPregeneSubbg(subbg) {
|
||||
pregeneSlideshows = [166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185]
|
||||
pregeneSlideshows = [
|
||||
// pregene aqua
|
||||
166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185,
|
||||
// pregene 1
|
||||
214, 215, 216, 217, 218, 219, 220, 221, 222, 223
|
||||
]
|
||||
return pregeneSlideshows.includes(parseInt(subbg))
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"pregene": [
|
||||
{
|
||||
"id": 0,
|
||||
"id": 1,
|
||||
"name": "Premium Generator (Aqua Set)",
|
||||
"items": {
|
||||
"crew": [131],
|
||||
@@ -10,7 +10,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"id": 2,
|
||||
"name": "Premium Generator Vol. 1",
|
||||
"items": {
|
||||
"crew": [134],
|
||||
@@ -101,9 +101,9 @@
|
||||
"name": "Valkyrie Generator Vol. 8",
|
||||
"items":{
|
||||
"crew": [130],
|
||||
"stamp": [38, 39, 40, 41, 42],
|
||||
"stamp": [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68],
|
||||
"subbg": [152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165],
|
||||
"bgm": [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68],
|
||||
"bgm": [38, 39, 40, 41, 42],
|
||||
"nemsys": [31]
|
||||
}
|
||||
},
|
||||
@@ -119,4 +119,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user