不满100级时不计算超觉醒
This commit is contained in:
parent
48d66e7fcf
commit
1554f7bac1
|
@ -173,9 +173,12 @@ function awokenCountInTeam(team,awokenIndex,solo,teamsCount)
|
|||
const assistCard = Cards[assist.id];
|
||||
//启用的觉醒数组片段
|
||||
let enableAwoken = card.awakenings.slice(0, mon.awoken);
|
||||
if (solo || teamsCount === 3) //单人、3人日服增加超觉醒
|
||||
//单人、3人时,大于等于100级时增加超觉醒
|
||||
if (solo || teamsCount === 3 && member.sawoken>=0 && member.level>=100)
|
||||
{
|
||||
enableAwoken = enableAwoken.concat(card.superAwakenings[mon.sawoken]);
|
||||
const sAwokenT = memberCard.superAwakenings[mon.sawoken];
|
||||
if (sAwokenT >= 0)
|
||||
enableAwoken = enableAwoken.concat(sAwokenT);
|
||||
}
|
||||
if (assistCard && assistCard.enabled && assistCard.awakenings.includes(49))
|
||||
{ //如果卡片未启用
|
||||
|
@ -291,10 +294,12 @@ function calculateAbility(member, assist = null, solo = true, teamsCount = 1)
|
|||
const n_plus = member.plus[idx] * plusAdd[idx]; //加值增加量
|
||||
let n_assist_base = 0,n_assist_plus=0; //辅助的bonus
|
||||
let awokenList = memberCard.awakenings.slice(0,member.awoken); //储存点亮的觉醒
|
||||
//单人、3人时增加超觉醒
|
||||
if ((solo || teamsCount === 3) && member.sawoken>=0)
|
||||
//单人、3人时,大于等于100级时增加超觉醒
|
||||
if ((solo || teamsCount === 3) && member.sawoken>=0 && member.level>=100)
|
||||
{
|
||||
awokenList = awokenList.concat(memberCard.superAwakenings[member.sawoken]);
|
||||
const sAwokenT = memberCard.superAwakenings[member.sawoken];
|
||||
if (sAwokenT >= 0)
|
||||
awokenList = awokenList.concat(sAwokenT);
|
||||
}
|
||||
//如果有武器还要计算武器的觉醒
|
||||
if (assistCard && assistCard.id > 0 && assistCard.enabled)
|
||||
|
|
Loading…
Reference in New Issue