feat: 세력도시에서 수입 정보 표기, NPC 색 누락분 수정

This commit is contained in:
2022-03-23 23:13:28 +09:00
parent 59bda13550
commit 5d2d4f4c64
10 changed files with 132 additions and 126 deletions
-29
View File
@@ -231,36 +231,7 @@ function formatLeadershipBonus(int $value): string
return "<font color=cyan>+{$value}</font>";
}
function getNPCColor(int $npc): ?string{
if ($npc == 1) {
return 'skyblue';
}
if ($npc == 4){
return 'deepskyblue';
}
if ($npc == 5){
return 'darkcyan';
}
if ($npc == 6){
return 'mediumaquamarine';
}
if ($npc > 1) {
return 'cyan';
}
return null;
}
function formatName(string $name, int $npc): string
{
$color = getNPCColor($npc);
if($color === null){
return $name;
}
return "<span style='color:{$color}'>$name</span>";
}
function getMapTheme(): string
{