diff --git a/languages/en.css b/languages/en.css index 6df01818..3fcfcdef 100644 --- a/languages/en.css +++ b/languages/en.css @@ -267,6 +267,9 @@ label[for="show-team-awoken-count"]::after{ label[for="show-team-awoken-effect"]::after{ content:"Team's Awoken Effect Calculate"; } +label[for="show-meter"]::after{ + content:"Display as Meter bar"; +} label[for="show-team-attrtype-count"]::after{ content:"Team's Rarity, Attributes, Types Count"; } diff --git a/languages/ja.css b/languages/ja.css index 30e4b365..e890d624 100644 --- a/languages/ja.css +++ b/languages/ja.css @@ -261,6 +261,9 @@ label[for="show-team-awoken-count"]::after{ label[for="show-team-awoken-effect"]::after{ content:"チームの覚醒効果の計算"; } +label[for="show-meter"]::after{ + content:"測光バーとして表示"; +} label[for="show-team-attrtype-count"]::after{ content:"チームの希少性、属性、タイプの合計"; } diff --git a/languages/ko.css b/languages/ko.css index 76be7ded..abde11b8 100644 --- a/languages/ko.css +++ b/languages/ko.css @@ -256,6 +256,9 @@ label[for="show-team-awoken-count"]::after{ label[for="show-team-awoken-effect"]::after{ content:"팀의 각성 효과 계산"; } +label[for="show-meter"]::after{ + content:"측광 막대로 표시됨"; +} label[for="show-team-attrtype-count"]::after{ content:"팀의 희귀도, 속성, 유형 수"; } diff --git a/languages/zh-hans.css b/languages/zh-hans.css index 51307d20..b9da7297 100644 --- a/languages/zh-hans.css +++ b/languages/zh-hans.css @@ -262,6 +262,9 @@ label[for="show-team-awoken-count"]::after{ label[for="show-team-awoken-effect"]::after{ content:"队伍觉醒效果计算"; } +label[for="show-meter"]::after{ + content:"显示为计量条"; +} label[for="show-team-attrtype-count"]::after{ content:"队伍稀有度、属性与类型计数"; } diff --git a/languages/zh-hant.css b/languages/zh-hant.css index ef9cc7c6..d29504d8 100644 --- a/languages/zh-hant.css +++ b/languages/zh-hant.css @@ -263,6 +263,9 @@ label[for="show-team-awoken-count"]::after{ label[for="show-team-awoken-effect"]::after{ content:"隊伍覺醒效果計算"; } +label[for="show-meter"]::after{ + content:"顯示為計量條"; +} label[for="show-team-attrtype-count"]::after{ content:"隊伍稀有度、屬性與類型計數"; } diff --git a/multi.html b/multi.html index 0c94d7a3..999ef9ba 100644 --- a/multi.html +++ b/multi.html @@ -1280,7 +1280,9 @@ const teamsCount = 2;
diff --git a/script.js b/script.js index 0e8b0861..e8ed99bd 100644 --- a/script.js +++ b/script.js @@ -6255,6 +6255,12 @@ function editBoxChangeMonId(id) { //const openEvolutionaryTree = settingBox.querySelector(".row-mon-id .open-evolutionary-tree"); if (evoLinkCardsIdArray.length > 1) { const fragment = document.createDocumentFragment(); //创建节点用的临时空间 + + const li = fragment.appendChild(document.createElement("li")); + const openEvolutionaryTree = li.appendChild(document.createElement("button")); + openEvolutionaryTree.classList = "open-evolutionary-tree brown-button"; + openEvolutionaryTree.onclick = openEvolutionaryTreeClick; + evoLinkCardsIdArray.forEach(function(mid) { const cli = createCardHead(mid, {noTreeCount: true}); if (mid == id) { @@ -6262,10 +6268,7 @@ function editBoxChangeMonId(id) { } fragment.appendChild(cli); }); - const li = fragment.appendChild(document.createElement("li")); - const openEvolutionaryTree = li.appendChild(document.createElement("button")); - openEvolutionaryTree.classList = "open-evolutionary-tree brown-button"; - openEvolutionaryTree.onclick = openEvolutionaryTreeClick; + evoCardUl.appendChild(fragment); evoCardUl.classList.remove(className_displayNone); //openEvolutionaryTree.classList.remove(className_displayNone); //显示进化树按钮 @@ -6836,6 +6839,7 @@ function refreshTeamAwokenEfeect(awokenEffectDom, team, ti) { //SX if (targetIcon = awokenEffectDom.querySelector(".awoken-icon[data-awoken-icon=\"28\"]")) { const targetValue = targetIcon.parentElement.querySelector(".prob"); + const targetMeter = targetIcon.parentElement.querySelector("meter"); const thisAwokenNum = awokenCountInTeam(team, 28, solo, teamsCount); let prob = thisAwokenNum / 5; switch (badge) { @@ -6846,11 +6850,14 @@ function refreshTeamAwokenEfeect(awokenEffectDom, team, ti) { prob += 1; break; } - targetValue.setAttribute(dataAttrName, Math.round(Math.min(prob,1)*100)); + const percentValue = Math.round(Math.min(prob,1)*100); + targetValue.setAttribute(dataAttrName, percentValue); + targetMeter.value = percentValue; } //暗 if (targetIcon = awokenEffectDom.querySelector(".awoken-icon[data-awoken-icon=\"68\"]")) { const targetValue = targetIcon.parentElement.querySelector(".prob"); + const targetMeter = targetIcon.parentElement.querySelector("meter"); const equivalentAwoken = equivalent_awoken.find(eak => eak.big === 68); const thisAwokenNum = awokenCountInTeam(team, equivalentAwoken.small, solo, teamsCount) + awokenCountInTeam(team, equivalentAwoken.big, solo, teamsCount) * equivalentAwoken.times; @@ -6863,11 +6870,14 @@ function refreshTeamAwokenEfeect(awokenEffectDom, team, ti) { prob += 1; break; } - targetValue.setAttribute(dataAttrName, Math.round(Math.min(prob,1)*100)); + const percentValue = Math.round(Math.min(prob,1)*100); + targetValue.setAttribute(dataAttrName, percentValue); + targetMeter.value = percentValue; } //废 if (targetIcon = awokenEffectDom.querySelector(".awoken-icon[data-awoken-icon=\"69\"]")) { const targetValue = targetIcon.parentElement.querySelector(".prob"); + const targetMeter = targetIcon.parentElement.querySelector("meter"); const equivalentAwoken = equivalent_awoken.find(eak => eak.big === 69); const thisAwokenNum = awokenCountInTeam(team, equivalentAwoken.small, solo, teamsCount) + awokenCountInTeam(team, equivalentAwoken.big, solo, teamsCount) * equivalentAwoken.times; @@ -6880,11 +6890,14 @@ function refreshTeamAwokenEfeect(awokenEffectDom, team, ti) { prob += 1; break; } - targetValue.setAttribute(dataAttrName, Math.round(Math.min(prob,1)*100)); + const percentValue = Math.round(Math.min(prob,1)*100); + targetValue.setAttribute(dataAttrName, percentValue); + targetMeter.value = percentValue; } //毒 if (targetIcon = awokenEffectDom.querySelector(".awoken-icon[data-awoken-icon=\"70\"]")) { const targetValue = targetIcon.parentElement.querySelector(".prob"); + const targetMeter = targetIcon.parentElement.querySelector("meter"); const equivalentAwoken = equivalent_awoken.find(eak => eak.big === 70); const thisAwokenNum = awokenCountInTeam(team, equivalentAwoken.small, solo, teamsCount) + awokenCountInTeam(team, equivalentAwoken.big, solo, teamsCount) * equivalentAwoken.times; @@ -6897,33 +6910,47 @@ function refreshTeamAwokenEfeect(awokenEffectDom, team, ti) { prob += 1; break; } - targetValue.setAttribute(dataAttrName, Math.round(Math.min(prob,1)*100)); + const percentValue = Math.round(Math.min(prob,1)*100); + targetValue.setAttribute(dataAttrName, percentValue); + targetMeter.value = percentValue; } //云 if (targetIcon = awokenEffectDom.querySelector(".awoken-icon[data-awoken-icon=\"54\"]")) { const targetValue = targetIcon.parentElement.querySelector(".prob"); + const targetMeter = targetIcon.parentElement.querySelector("meter"); const thisAwokenNum = awokenCountInTeam(team, 54, solo, teamsCount); let prob = thisAwokenNum / 1; - targetValue.setAttribute(dataAttrName, Math.round(Math.min(prob,1)*100)); + const percentValue = Math.round(Math.min(prob,1)*100); + targetValue.setAttribute(dataAttrName, percentValue); + targetMeter.value = percentValue; } //封条 if (targetIcon = awokenEffectDom.querySelector(".awoken-icon[data-awoken-icon=\"55\"]")) { const targetValue = targetIcon.parentElement.querySelector(".prob"); + const targetMeter = targetIcon.parentElement.querySelector("meter"); const thisAwokenNum = awokenCountInTeam(team, 55, solo, teamsCount); let prob = thisAwokenNum / 1; - targetValue.setAttribute(dataAttrName, Math.round(Math.min(prob,1)*100)); + const percentValue = Math.round(Math.min(prob,1)*100); + targetValue.setAttribute(dataAttrName, percentValue); + targetMeter.value = percentValue; } //掉废 if (targetIcon = awokenEffectDom.querySelector(".latent-icon[data-latent-icon=\"14\"]")) { const targetValue = targetIcon.parentElement.querySelector(".prob"); + const targetMeter = targetIcon.parentElement.querySelector("meter"); let prob = members.some(member=>member?.latent?.includes(14)) ? 1 : 0; - targetValue.setAttribute(dataAttrName, Math.round(Math.min(prob,1)*100)); + const percentValue = Math.round(Math.min(prob,1)*100); + targetValue.setAttribute(dataAttrName, percentValue); + targetMeter.value = percentValue; } //掉毒 if (targetIcon = awokenEffectDom.querySelector(".latent-icon[data-latent-icon=\"15\"]")) { const targetValue = targetIcon.parentElement.querySelector(".prob"); + const targetMeter = targetIcon.parentElement.querySelector("meter"); let prob = members.some(member=>member?.latent?.includes(15)) ? 1 : 0; - targetValue.setAttribute(dataAttrName, Math.round(Math.min(prob,1)*100)); + const percentValue = Math.round(Math.min(prob,1)*100); + targetValue.setAttribute(dataAttrName, percentValue); + targetMeter.value = percentValue; } //心横解转转 if (targetIcon = awokenEffectDom.querySelector(".latent-icon[data-latent-icon=\"40\"]")) { diff --git a/service-worker.js b/service-worker.js index 13a0fcb9..8c8a8217 100644 --- a/service-worker.js +++ b/service-worker.js @@ -26191,7 +26191,7 @@ const cachesMap = new Map([ ], [ "multi.html", - "f30df83eaac9f7df6dbb422b2df2d11f" + "5b452eea55769c3fee713f9e7a526a08" ], [ "script-custom_elements.js", @@ -26211,11 +26211,11 @@ const cachesMap = new Map([ ], [ "script.js", - "b88369cfd8d91ed68e57c8c2d5c5e9f8" + "f228089acd5a5362b376a5c13696a88b" ], [ "solo.html", - "19ece08cfb767949c4ec60f1621bb456" + "fa7ba118c169018a3ba161757a404cc3" ], [ "style-monsterimages.css", @@ -26223,7 +26223,7 @@ const cachesMap = new Map([ ], [ "style.css", - "c0797e33a91d1003e3f26b6740893461" + "c34c2e4307455d12036d8bb587a3d7d6" ], [ "temp.js", @@ -26231,11 +26231,11 @@ const cachesMap = new Map([ ], [ "triple.html", - "bcb2e5b2bec153ec15bc97e9f7c0488e" + "15e16a8db1bebdb59251e8e5026e5258" ], [ "languages/en.css", - "e5a21ebe0953c072015a9ffc89a32589" + "d70cb92c024d42de25bcb564dc78eb2b" ], [ "languages/en.js", @@ -26243,7 +26243,7 @@ const cachesMap = new Map([ ], [ "languages/ja.css", - "3f799231dc30a264b17fd0c56963bce7" + "d3b1f5d7cb66880833180650f38405db" ], [ "languages/ja.js", @@ -26251,7 +26251,7 @@ const cachesMap = new Map([ ], [ "languages/ko.css", - "530f343e7422816a3db9fbeb0b6c64ed" + "f8b6f1d4317a5fb942fec02d35be2fbe" ], [ "languages/ko.js", @@ -26263,7 +26263,7 @@ const cachesMap = new Map([ ], [ "languages/zh-hans.css", - "3ce8d2a490a532f4d5084bbe46c00cbd" + "c9c2c2056ecff32200beee8209f0652c" ], [ "languages/zh-hans.js", @@ -26271,7 +26271,7 @@ const cachesMap = new Map([ ], [ "languages/zh-hant.css", - "96920dbb7191e9e32c948165b820a3b7" + "21de0314dbf99b2201fc7f98d5939447" ], [ "languages/zh-hant.js", diff --git a/solo.html b/solo.html index d149c253..fee640a1 100644 --- a/solo.html +++ b/solo.html @@ -61,6 +61,7 @@ const teamsCount = 1; + @@ -488,19 +489,19 @@ const teamsCount = 1;