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
+4 -4
View File
@@ -59,10 +59,10 @@ $db = DB::db();
if ($general['block'] > 0) {
$style .= "background-color:red;";
}
if ($general['npc'] >= 2) {
$style .= "color:cyan;";
} elseif ($general['npc'] == 1) {
$style .= "color:skyblue;";
$npcColor = getNPCColor($general['npc']);
if($npcColor !== null){
$style .= "color:{$npcColor};";
}
echo "