refac: utilGame/getNPCColor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user