Browse Source

增加了转生后的究极进化的判断

tags/v2.5
枫谷剑仙 6 years ago
parent
commit
baae9433cf
4 changed files with 19 additions and 11 deletions
  1. BIN
      images/cards_en/CARDS_054.PNG
  2. BIN
      images/cards_en/CARDS_057.PNG
  3. +18
    -6
      monsters-info/extractByNode.js
  4. +1
    -5
      script.js

BIN
images/cards_en/CARDS_054.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 687 kB Width: 1024  |  Height: 1024  |  Size: 709 kB

BIN
images/cards_en/CARDS_057.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 194 kB Width: 1024  |  Height: 1024  |  Size: 354 kB

+ 18
- 6
monsters-info/extractByNode.js View File

@@ -203,16 +203,28 @@ officialAPI.forEach(function(lang){
sm.sAwoken = m.superAwakenings;
if (m.limitBreakIncr>0)
sm.a110 = m.limitBreakIncr;
if (sm.id != sm.evoRootId && sm.evoType == 0) //不是究极进化的
if (sm.id != sm.evoRootId)
{
let parentCard = lang.cards[m.evoBaseId]; //进化前的
if (parentCard.isUltEvo) //如果父级是究极进化
let parentParentCard = parentCard?lang.cards[parentCard.evoBaseId]:null; //父级的父级
if (sm.evoType == 0) //不是究极进化的
{
sm.evoType = 2; //那么这里是转生进化
}else if (parentCard.evoBaseId != parentCard.id //如果父级还有父级
&& lang.cards[parentCard.evoBaseId].isUltEvo) //父级的父级是究极进化
if (parentCard.isUltEvo) //如果父级是究极进化
{
sm.evoType = 2; //那么这里是转生进化
}else if (parentCard.evoBaseId != parentCard.id //如果父级还有父级
&& parentParentCard.isUltEvo //父级的父级是究极进化
)
{
sm.evoType = 3; //那么这里是超转生进化
}
}else if (sm.evoType == 1 //是究极进化的
&& parentCard.evoBaseId != parentCard.id //如果父级还有父级
&& !parentCard.isUltEvo //父级不是究极进化
&& parentParentCard.isUltEvo //父级的父级是究极进化
)
{
sm.evoType = 3; //那么这里是超转生进化
sm.evoType = 21; //那么这里是转生进化后的究进
}
}
return sm;


+ 1
- 5
script.js View File

@@ -121,11 +121,7 @@ function getMaxLatentCount(id)
function is8Latent(id)
{
let m = ms[id] || ms[0],mEvoType = m.evoType;
if (mEvoType == 2 || mEvoType == 3){return true;}
if (mEvoType == 1) //判断究进之前是不是转生(三神面宙斯等)
{
}
if (mEvoType == 2 || mEvoType == 3 || mEvoType==21){return true;}
return false;
}
return is8Latent(id) ? 8 : 6;


Loading…
Cancel
Save