From 3bb71828a2d46d080179985e769eefe61e4abbf7 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, 17 Jan 2023 21:25:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E5=8A=A0=E6=98=BE=E7=A4=BA76=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-json_data.js | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/script-json_data.js b/script-json_data.js index da9a829e..238308bc 100644 --- a/script-json_data.js +++ b/script-json_data.js @@ -2560,10 +2560,29 @@ const specialSearchFunctions = (function() { if (!skill) return; const sk = skill.params; - if (sk[1]) - return `[7×6]×${sk[0]}T`; - else - return `[6×5]×${sk[0]}T`; + let width, height; + switch (type) { + case 1: { + width = 7; + height = 6; + break; + } + case 2: { + width = 5; + height = 3; + break; + } + case 3: { + width = 6; + height = 5; + break; + } + default: { + width = 6; + height = 5; + } + } + return `[${width}×${height}]×${sk[0]}T`; } }, ]},