From bf042b2bd2d1850213971181b225ec026323e8e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Wed, 27 Nov 2019 23:53:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BF=9B=E5=8C=96=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monsters-info/extractByNode.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/monsters-info/extractByNode.js b/monsters-info/extractByNode.js index 997eb91a..407807a5 100644 --- a/monsters-info/extractByNode.js +++ b/monsters-info/extractByNode.js @@ -195,6 +195,7 @@ officialAPI.forEach(function(lang){ m.rcv ], evoRootId : m.evoRootId, + evoType : m.isUltEvo? 1 : 0, //进化模式 } sm.name[lang.code] = m.name; sm.name = Object.assign(sm.name, m.otlName); @@ -202,6 +203,18 @@ officialAPI.forEach(function(lang){ sm.sAwoken = m.superAwakenings; if (m.limitBreakIncr>0) sm.a110 = m.limitBreakIncr; + if (sm.id != sm.evoRootId && sm.evoType == 0) //不是究极进化的 + { + let parentCard = lang.cards[m.evoBaseId]; //进化前的 + if (parentCard.isUltEvo) //如果父级是究极进化 + { + sm.evoType = 2; //那么这里是转生进化 + }else if (parentCard.evoBaseId != parentCard.id //如果父级还有父级 + && lang.cards[parentCard.evoBaseId].isUltEvo) //父级的父级是究极进化 + { + sm.evoType = 3; //那么这里是超转生进化 + } + } return sm; }) //获取所有有链接的符卡