From 454fe8611edee4f52f3d1ed37fc5e7afa18635b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Tue, 14 Apr 2020 19:07:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AE=9A=E4=B8=BA=E7=BC=96=E5=8F=B737?= =?UTF-8?q?=E7=9A=84=E8=A7=89=E9=86=92=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script.js b/script.js index f01025cf..1b571ead 100644 --- a/script.js +++ b/script.js @@ -1231,9 +1231,8 @@ function initialize() const lIdx = parseInt(this.getAttribute("data-latent-icon"),10); //潜觉的序号 const usedHoleN = usedHole(editBox.latent); //使用了的格子 const maxLatentCount = getMaxLatentCount(editBox.mid); //最大潜觉数量 - console.log(lIdx,usedHoleN<=(maxLatentCount-6)) if (lIdx == 37 && usedHoleN<=(maxLatentCount-6) || //如果能添加6格的觉醒 - lIdx >= 12 && usedHoleN<=(maxLatentCount-2) || //如果能添加2格的觉醒 + lIdx >= 12 && lIdx <37 && usedHoleN<=(maxLatentCount-2) || //如果能添加2格的觉醒 lIdx < 12 && usedHoleN<=(maxLatentCount-1)) //如果能添加1格的觉醒 {editBox.latent.push(lIdx);} else {return;}