From 51b8397359145b2f9c7b61cfaf42cff5ecb5f34f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Thu, 25 Jul 2019 20:51:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B0=E8=A7=89=E9=86=92?= =?UTF-8?q?=E7=9A=84=E7=BB=9F=E8=AE=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 14 +++--- script.js | 22 +++++++-- solo.html | 139 +++++++++++++++++++++++++++-------------------------- 3 files changed, 96 insertions(+), 79 deletions(-) diff --git a/index.html b/index.html index 338616f2..a6190b9f 100644 --- a/index.html +++ b/index.html @@ -355,13 +355,13 @@ var formation = new Formation(2,5);
diff --git a/script.js b/script.js index d01bba9b..e0f853b4 100644 --- a/script.js +++ b/script.js @@ -938,26 +938,38 @@ function refreshAll(fmt){ function refreshAwokenCount(teams){ var awokenUL = document.querySelector(".awoken-total-box .awoken-ul"); function setCount(idx,number){ - var ali = awokenUL.querySelector(".a-c-" + idx); - if (!ali) return; //没有这个觉醒就撤回 - ali.querySelector(".count").innerHTML = number; + var aicon = awokenUL.querySelector(".awoken-" + idx); + if (!aicon) return; //没有这个觉醒就撤回 + var ali = aicon.parentNode; + var countDom = ali.querySelector(".count"); + countDom.innerHTML = number; if (number) ali.classList.remove("display-none"); else ali.classList.add("display-none"); } - for (var ai=1;ai<=67;ai++) + var bigAwoken = [52,53,56,68,69,70]; //等于几个小觉醒的大觉醒 + for (var ai=1;ai<=72;ai++) { if (ai == 10) //防封 { setCount(ai,awokenCountInTeam(teams,ai,solo)+awokenCountInTeam(teams,52,solo)*2); + }else if (ai == 11) //防暗 + { + setCount(ai,awokenCountInTeam(teams,ai,solo)+awokenCountInTeam(teams,68,solo)*5); + }else if (ai == 12) //防废 + { + setCount(ai,awokenCountInTeam(teams,ai,solo)+awokenCountInTeam(teams,69,solo)*5); + }else if (ai == 13) //防毒 + { + setCount(ai,awokenCountInTeam(teams,ai,solo)+awokenCountInTeam(teams,70,solo)*5); }else if (ai == 19) //手指 { setCount(ai,awokenCountInTeam(teams,ai,solo)+awokenCountInTeam(teams,53,solo)*2); }else if (ai == 21) //SB { setCount(ai,awokenCountInTeam(teams,ai,solo)+awokenCountInTeam(teams,56,solo)*2); - }else if (ai == 52 || ai == 53 || ai == 56) //大防封、大手指,大SB + }else if (bigAwoken.indexOf(ai)>=0) //属于大觉醒 { continue; }else diff --git a/solo.html b/solo.html index 8cff8f02..e3d466b6 100644 --- a/solo.html +++ b/solo.html @@ -246,73 +246,78 @@ var formation = new Formation(1,6);