fix: 세력일람에 군주 현재 위치를 복원
영토가 없는 세력도 전체 도시 사전에서 군주의 위치를 찾아 Ref와 같은 현재 위치를 표시한다. API와 Chromium 회귀 테스트를 추가한다.
This commit is contained in:
@@ -51,10 +51,6 @@ const displayAmbassadorName = (nation: Nation, name: string) => {
|
||||
return general ? displayGeneralName(general) : name;
|
||||
};
|
||||
|
||||
const roamingCityName = (nation: Nation): string => {
|
||||
const chief = officerName(nation, 12);
|
||||
return nation.cities.find((city) => city.id === chief?.cityId)?.name ?? '-';
|
||||
};
|
||||
const closeWindow = () => window.close();
|
||||
const officerLevelAt = (row: number, column: number, columns: number) => 13 - ((row - 1) * columns + column);
|
||||
|
||||
@@ -275,7 +271,8 @@ onBeforeUnmount(() => {
|
||||
</template>
|
||||
</template>
|
||||
<template v-else
|
||||
>현재 위치 : <span class="roaming-city">{{ roamingCityName(nation) }}</span></template
|
||||
>현재 위치 :
|
||||
<span class="roaming-city">{{ nation.rulerCityName ?? '-' }}</span></template
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user