From 0f71d786f7c37f15cce6d5f3c87702623b844f8e Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sun, 20 Mar 2022 12:14:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B9=99=EC=9D=98=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EC=9E=A5=EC=88=98=20=EB=AA=A9=EB=A1=9D=20=EB=B3=B4=EA=B8=B0?= =?UTF-8?q?=EB=A5=BC=20=EC=82=AC=EC=9A=A9=ED=95=A0=20=EC=88=98=20=EC=97=86?= =?UTF-8?q?=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/select_npc.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/hwe/ts/select_npc.ts b/hwe/ts/select_npc.ts index 0757c91c..c160fa64 100644 --- a/hwe/ts/select_npc.ts +++ b/hwe/ts/select_npc.ts @@ -2,6 +2,7 @@ import axios from 'axios'; import { errUnknown } from '@/common_legacy'; import { getIconPath } from "@util/getIconPath"; import { TemplateEngine } from "@util/TemplateEngine"; +import { getNpcColor } from '@/common_legacy'; import { GeneralListResponse, InvalidResponse } from '@/defs'; import { convertFormData } from '@util/convertFormData'; import { unwrap_any } from '@util/unwrap_any'; @@ -267,6 +268,7 @@ function printGenerals(value: NPCToken) { } function printGeneralList(value: GeneralListResponse) { + console.log(value); const tokenList = value.token; const generalList:NPCPickPrintable[] = value.list.map((rawGeneral) => { const general: NPCPickPrintableR = { @@ -307,7 +309,7 @@ function printGeneralList(value: GeneralListResponse) { if (general.reserved == 1) { general.userCSS = 'color:violet'; } else if (general.npc > 0) { - general.userCSS = `color:${getNPCColor(general.npc)}`; + general.userCSS = `color:${getNpcColor(general.npc)}`; } if (general.ownerName) { @@ -457,7 +459,3 @@ $(function ($) { }) }); - -function getNPCColor(npc: number) { - throw new Error('Function not implemented.'); -}