game: npc 색상 분리

This commit is contained in:
2022-02-05 07:43:27 +00:00
committed by Gitea
parent d5748a7950
commit 5b043eb6a4
11 changed files with 67 additions and 97 deletions
+1 -7
View File
@@ -145,13 +145,7 @@ if ($con >= 2) {
<tr>
<td colspan=8> 장수 일람 : ";
foreach ($generals as $general) {
if ($general['npc'] >= 2) {
echo "<font color=cyan>{$general['name']}</font>, ";
} elseif ($general['npc'] == 1) {
echo "<font color=skyblue>{$general['name']}</font>, ";
} else {
echo "{$general['name']}, ";
}
echo formatName($general['name'], $general['npc']).', ';
}
echo "
</td>