Skip to content

Commit

Permalink
修订技能搜索顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
Mapaler committed Jul 11, 2023
1 parent 7218a06 commit 96e84c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script-universal_function.js
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,8 @@ function getActuallySkills(skill, skillTypes, searchRandom = true) {
skill.type == 233 || //进化技能循环
skill.type == 248 //延迟生效技能
){
let params = skill.type == 248 ? skill.params.slice(1) : skill.params;
let params = skill.type == 248 ? skill.params.slice(1) : skill.params.concat();
params.reverse(); //将技能反转,让进化类技能优先搜索最终技能
//因为可能有多层调用,特别是随机118再调用组合116的,所以需要递归
const subSkills = params.flatMap(id => getActuallySkills(Skills[id], skillTypes, searchRandom)).filter(s=>s);
return subSkills;
Expand Down
1 change: 1 addition & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2832,6 +2832,7 @@ body:not(.solo) .awoken-icon[data-awoken-icon="64"]::after
.team-awoken-effect .orb-list .prob[data-value]::after
{
content: "%";
font-size: 0.75em;
}
.team-awoken-effect .latent-icon {
display: inline-flex;
Expand Down

0 comments on commit 96e84c0

Please sign in to comment.