From 91a4c512b59edde45ffce9ffad44aa778290c26d Mon Sep 17 00:00:00 2001
From: vvo <>
Date: Sun, 23 Oct 2022 19:48:21 +0800
Subject: [PATCH] removed unnecessary file
---
.../webui/asset/js/premiumgenerator.js | 58 -------------------
1 file changed, 58 deletions(-)
delete mode 100644 sdvx@asphyxia/webui/asset/js/premiumgenerator.js
diff --git a/sdvx@asphyxia/webui/asset/js/premiumgenerator.js b/sdvx@asphyxia/webui/asset/js/premiumgenerator.js
deleted file mode 100644
index d3993fd..0000000
--- a/sdvx@asphyxia/webui/asset/js/premiumgenerator.js
+++ /dev/null
@@ -1,58 +0,0 @@
-function countPreGeneItems(preGeneItems, items_crew, items_stamp, items_subbg, items_bgm, items_nemsys) {
- return items_crew.filter(crew => preGeneItems['crew'].includes(crew['id'])).length +
- items_stamp.filter(stamp => preGeneItems['stamp'].includes(stamp['id'])).length +
- items_subbg.filter(subbg => preGeneItems['subbg'].includes(subbg['id'])).length
-}
-
-function loadImages(itemList, itemType, userItems) {
- itemList.forEach(item => {
- let itemBrightness = userItems.find(userItem => userItem.id == item) != undefined ? 1 : 0.5
- let imageUrl = 'static/asset/valgene_item/item_' + itemType + '_' + item + '.png'
- $.get(imageUrl, function(data, textStatus) {
- if (textStatus == "success") {
- $('.' + itemType + '-items').append('')
- }
- })
- })
-}
-
-$(document).ready(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')
- return 0;
- }
-
- $('.input').hide()
- $('.button').addClass('is-link')
- let items_crew = JSON.parse(document.getElementById("data-pass-crew").innerText);
- let items_stamp = JSON.parse(document.getElementById("data-pass-stamp").innerText);
- let items_subbg = JSON.parse(document.getElementById("data-pass-subbg").innerText);
- let items_bgm = JSON.parse(document.getElementById("data-pass-bgm").innerText);
- let items_nemsys = JSON.parse(document.getElementById("data-pass-nemsys").innerText);
- let preGeneItems = {
- '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]
- }
-
- $('.count').text('Unlocked items: ' + countPreGeneItems(preGeneItems, items_crew, items_stamp, items_subbg, items_bgm, items_nemsys) + "/" + (preGeneItems['crew'].length + preGeneItems['stamp'].length + preGeneItems['subbg'].length))
- $('.item_banners').append('