refac: utilGame/getNPCColor

This commit is contained in:
2022-08-26 01:06:43 +09:00
parent 63771da876
commit 8a5a3b67f7
17 changed files with 52 additions and 30 deletions
+2 -2
View File
@@ -2,7 +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 { getNPCColor } from "@/utilGame";
import type { GeneralListResponse, InvalidResponse, PublicGeneralItem } from '@/defs';
import { convertFormData } from '@util/convertFormData';
import { unwrap_any } from '@util/unwrap_any';
@@ -289,7 +289,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) {