Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
cyomega authored Apr 15, 2024
1 parent 07350eb commit 495d679
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,12 @@
data.rarity = uits.rarity[data[5]];
}
function equipReference() {
// $('.dtsp-searchPane:eq(0) .clearButton').click();
$('.dtsp-searchPane:eq(0) .clearButton').click();
let set = '';
let equipExclude = table.rows({selected: true}).data();
if (equipExclude.length > 0) {
if (equipExclude.length == 0)
table.search('');
else {
let i = equipExclude.length;
while (i--) {
set += equipExclude[i][2] + '|';
Expand All @@ -183,8 +185,6 @@
set = set.replace(/.$/, '');
table.search('^((?!' + set + ').)*$');
}
else
table.search('');
const d = table.rows({search: 'applied'}).data();
let data = [];
for (let i = d.length - 1; i >= 0; i--) {
Expand Down Expand Up @@ -340,10 +340,9 @@
worker[i].postMessage([type, typeOrder, typeWeight, typeWeightZero, setSuccess, goal, statMin, randomCount]);
worker[i].onmessage = e => {
let d = e.data;
for (let i = d.length - 1; i >= 0; i--) {
for (let i = d.length - 1; i >= 0; i--)
if (!setSuccess.some(x => d[i].id.every(y => x.id.some(z => y == z))))
setSuccess.push(d[i]);
}
workerCount--;
if (workerCount == 0) {
setSuccess.sort((a, b) => b.score - a.score).splice(50);
Expand Down

0 comments on commit 495d679

Please sign in to comment.