From b0d9a941082daf31d2b7d41befea5274204b48be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Mon, 21 Dec 2020 01:26:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=A4=A7=E8=A7=89=E9=86=92?= =?UTF-8?q?=E4=B9=9F=E8=A2=AB=E6=98=BE=E7=A4=BA=E5=87=BA=E6=9D=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/script.js b/script.js index 96f9a18a..08c091ad 100644 --- a/script.js +++ b/script.js @@ -2826,10 +2826,13 @@ function refreshTeamAwokenCount(awokenDom, team) { let totalNum = 0; //搜索等效觉醒 const equivalentAwoken = equivalent_awoken.find(eak => eak.small === ai || eak.big === ai); - if (equivalentAwoken && equivalentAwoken.small === ai) + if (equivalent_awoken) { - totalNum = awokenCountInTeam(team, equivalentAwoken.small, solo, teamsCount) + - awokenCountInTeam(team, equivalentAwoken.big, solo, teamsCount) * equivalentAwoken.times; + if (equivalentAwoken.small === ai) + { + totalNum = awokenCountInTeam(team, equivalentAwoken.small, solo, teamsCount) + + awokenCountInTeam(team, equivalentAwoken.big, solo, teamsCount) * equivalentAwoken.times; + } } else { totalNum = awokenCountInTeam(team, ai, solo, teamsCount); @@ -2857,10 +2860,13 @@ function refreshFormationAwokenCount(awokenDom, teams) { let totalNum = 0; //搜索等效觉醒 const equivalentAwoken = equivalent_awoken.find(eak => eak.small === ai || eak.big === ai); - if (equivalentAwoken && equivalentAwoken.small === ai) + if (equivalentAwoken) { - totalNum = awokenCountInFormation(teams, equivalentAwoken.small, solo) + - awokenCountInFormation(teams, equivalentAwoken.big, solo) * equivalentAwoken.times; + if (equivalentAwoken.small === ai) + { + totalNum = awokenCountInFormation(teams, equivalentAwoken.small, solo) + + awokenCountInFormation(teams, equivalentAwoken.big, solo) * equivalentAwoken.times; + } } else { totalNum = awokenCountInFormation(teams, ai, solo);