fix(game-frontend): preserve castle icon geometry
This commit is contained in:
@@ -159,7 +159,7 @@ const cityStateStyle = computed(() => ({
|
||||
@click.stop="emit('select', props.city.id)"
|
||||
>
|
||||
<div v-if="cityBgStyle" class="city-bg" :style="[cityBgWrapperStyle, cityBgStyle]" />
|
||||
<div class="city-img">
|
||||
<div class="city-img" :style="cityIconStyle">
|
||||
<img class="city-icon" :src="castleIcon" :style="cityIconStyle" />
|
||||
<div class="city-filler" :class="{ 'my-city': props.city.isMyCity }" />
|
||||
<div v-if="flagIcon" class="city-flag" :style="cityFlagStyle">
|
||||
|
||||
@@ -157,7 +157,8 @@ const cityViews = computed<CityView[]>(() => {
|
||||
|
||||
return props.mapLayout.cityList.map((layoutCity) => {
|
||||
const dynamic = dynamicCityById.value.get(layoutCity.id);
|
||||
const [, state = 0, nationId = 0, region = layoutCity.region, supplyFlag = 0] = dynamic ?? [];
|
||||
const [level = layoutCity.level, state = 0, nationId = 0, region = layoutCity.region, supplyFlag = 0] =
|
||||
dynamic ?? [];
|
||||
const nation = nationById.value.get(nationId);
|
||||
const x = layoutCity.x * scale;
|
||||
const y = layoutCity.y * scale;
|
||||
@@ -165,8 +166,8 @@ const cityViews = computed<CityView[]>(() => {
|
||||
return {
|
||||
id: layoutCity.id,
|
||||
name: layoutCity.name,
|
||||
level: layoutCity.level,
|
||||
levelName: props.mapLayout?.levelMap?.[layoutCity.level] ?? '-',
|
||||
level,
|
||||
levelName: props.mapLayout?.levelMap?.[level] ?? '-',
|
||||
state,
|
||||
stateClass: resolveStateClass(state),
|
||||
nationId,
|
||||
|
||||
Reference in New Issue
Block a user