game: npc 색상 분리

This commit is contained in:
2022-01-27 20:02:05 +09:00
parent a8ba2872e1
commit e6863539a0
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>