refac: utilGame/getNPCColor

This commit is contained in:
Hide_D committed 2022-08-26 01:06:43 +09:00
1 parent 63771da876
commit 8a5a3b67f7
17 files changed
+52 -30

No files matched your search

+2 -2
View File
@@ -94,7 +94,7 @@ import type {
CellClickedEvent,
} from "ag-grid-community";
import { ProvidedColumnGroup } from "ag-grid-community";
import { getNpcColor } from "@/common_legacy";
import { getNPCColor } from "@/utilGame";
import type {
ValueGetterParams,
ValueFormatterFunc,
@@ -523,7 +523,7 @@ const columnRawDefs = ref<Partial<Record<headerType, GenColDef | GenColGroupDef>
cellStyle: (val: CellClassParams<GeneralListItem>) => {
const gen = unwrap(val.data);
const style: StyleValue = {
color: getNpcColor(gen.npc),
color: getNPCColor(gen.npc),
};
return style as CellStyle;
},