game: npc 색상 분리

This commit is contained in:
2022-02-05 07:43:27 +00:00
committed by Gitea
parent d2f6c34e85
commit b5fa2aef91
11 changed files with 67 additions and 97 deletions
+10 -1
View File
@@ -79,7 +79,16 @@ function br2nl (text) {
}
*/
export function getNpcColor(npcType: number): 'cyan' | 'skyblue' | null {
export function getNpcColor(npcType: number): 'skyblue' | 'cyan' | 'deepskyblue' | 'darkcyan' | 'mediumaquamarine' | null {
if (npcType == 6){
return 'mediumaquamarine';
}
if (npcType == 5){
return 'darkcyan';
}
if (npcType == 4){
return 'deepskyblue';
}
if (npcType >= 2) {
return 'cyan';
}