Skip to content

Commit

Permalink
修复排序错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Mapaler committed Apr 27, 2024
1 parent 53827d4 commit 5391385
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions script-json_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ const specialSearchFunctions = (function() {
const turns = voidsAbsorption_Turns(card);
return turns[attrName] > 0;
}).sort((a,b)=>{
const a_s = unbind_Turns(a), b_s = unbind_Turns(b);
const a_s = voidsAbsorption_Turns(a), b_s = voidsAbsorption_Turns(b);
let a_pC = a_s[attrName], b_pC = b_s[attrName];
return a_pC - b_pC;
});
Expand All @@ -1577,7 +1577,7 @@ const specialSearchFunctions = (function() {
const turns = voidsAbsorption_Turns(card);
return turns[attrName] > 0;
}).sort((a,b)=>{
const a_s = unbind_Turns(a), b_s = unbind_Turns(b);
const a_s = voidsAbsorption_Turns(a), b_s = voidsAbsorption_Turns(b);
let a_pC = a_s[attrName], b_pC = b_s[attrName];
return a_pC - b_pC;
});
Expand All @@ -1591,7 +1591,7 @@ const specialSearchFunctions = (function() {
const turns = voidsAbsorption_Turns(card);
return turns[attrName] > 0;
}).sort((a,b)=>{
const a_s = unbind_Turns(a), b_s = unbind_Turns(b);
const a_s = voidsAbsorption_Turns(a), b_s = voidsAbsorption_Turns(b);
let a_pC = a_s[attrName], b_pC = b_s[attrName];
return a_pC - b_pC;
});
Expand All @@ -1605,7 +1605,7 @@ const specialSearchFunctions = (function() {
const turns = voidsAbsorption_Turns(card);
return turns[attrName] > 0;
}).sort((a,b)=>{
const a_s = unbind_Turns(a), b_s = unbind_Turns(b);
const a_s = voidsAbsorption_Turns(a), b_s = voidsAbsorption_Turns(b);
let a_pC = a_s[attrName], b_pC = b_s[attrName];
return a_pC - b_pC;
});
Expand All @@ -1618,7 +1618,7 @@ const specialSearchFunctions = (function() {
const turns = voidsAbsorption_Turns(card);
return turns["attr-absorb"] > 0 && turns["damage-absorb"] > 0 && turns["damage-void"] > 0;
}).sort((a,b)=>{
const a_s = unbind_Turns(a), b_s = unbind_Turns(b);
const a_s = voidsAbsorption_Turns(a), b_s = voidsAbsorption_Turns(b);
let a_pC = a_s["attr-absorb"], b_pC = b_s["attr-absorb"];
return a_pC - b_pC;
});
Expand Down Expand Up @@ -1677,7 +1677,7 @@ const specialSearchFunctions = (function() {
return turns.normal > 0 && turns.awakenings > 0 && turns.matches > 0;
}).sort((a,b)=>{
const a_s = unbind_Turns(a), b_s = unbind_Turns(b);
let a_pC = a_s.awoken, b_pC = b_s.awoken;
let a_pC = a_s.normal, b_pC = b_s.normal;
return a_pC - b_pC;
});
},
Expand Down Expand Up @@ -1741,7 +1741,7 @@ const specialSearchFunctions = (function() {
if (!skill) return;
const fragment = document.createDocumentFragment();
fragment.append(createSkillIcon('leader-change'));
skill.type == 227 && fragment.append('换👉');
skill.type === 227 && fragment.append('换👉');
return fragment;
}
},
Expand Down
2 changes: 1 addition & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -26199,7 +26199,7 @@ const cachesMap = new Map([
],
[
"script-json_data.js",
"f5230a5fb04a878db62d6e17010a544e"
"8d4c90d1ee840b473c7610819f85d664"
],
[
"script-skill-parser.js",
Expand Down

0 comments on commit 5391385

Please sign in to comment.