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
+20
View File
@@ -0,0 +1,20 @@
export function getNPCColor(
npcType: number
): "skyblue" | "cyan" | "deepskyblue" | "darkcyan" | "mediumaquamarine" | undefined {
if (npcType == 6) {
return "mediumaquamarine";
}
if (npcType == 5) {
return "darkcyan";
}
if (npcType == 4) {
return "deepskyblue";
}
if (npcType >= 2) {
return "cyan";
}
if (npcType == 1) {
return "skyblue";
}
return undefined;
}
+1
View File
@@ -9,6 +9,7 @@ export { formatInjury } from './formatInjury';
export { formatLog } from './formatLog';
export { formatOfficerLevelText } from './formatOfficerLevelText';
export { formatVoteColor } from "./formatVoteColor";
export { getNPCColor } from "./getNPCColor";
export { isValidObjKey } from "./isValidObjKey";
export { nextExpLevelRemain } from "./nextExpLevelRemain";
export { postFilterNationCommandGen } from "./postFilterNationCommandGen";