fix: 빙의에서 장수 목록 보기를 사용할 수 없음

This commit is contained in:
2022-03-20 12:14:20 +09:00
parent fec2508091
commit 0f71d786f7
+3 -5
View File
@@ -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.');
}