diff --git a/src/Core/Buildings.ts b/src/Core/Buildings.ts index 64e08b4..44f3d94 100644 --- a/src/Core/Buildings.ts +++ b/src/Core/Buildings.ts @@ -1,5 +1,6 @@ export const WAREHOUSE_ID = 10; export const GARNER_ID = 11; +export const COLLECTION_POINT_ID = 16; export const MARKET_ID = 17; export const QUARTERS_ID = 19; export const HORSE_STABLE_ID = 20; diff --git a/src/DashboardView/VillageStateList.vue b/src/DashboardView/VillageStateList.vue index 4628fa7..f0151d5 100644 --- a/src/DashboardView/VillageStateList.vue +++ b/src/DashboardView/VillageStateList.vue @@ -182,10 +182,11 @@ v-if="s.id !== villageState.id" :href="marketPath(villageState.village, s.village)" :title="'Отправить ресурсы из ' + villageState.village.name + ' в ' + s.village.name" - >->{{ s.village.name }}</a + >$->{{ s.village.name }}</a > <a class="village-quick-link" :href="quartersPath(villageState.village)">Казармы</a> <a class="village-quick-link" :href="horseStablePath(villageState.village)">Конюшни</a> + <a class="village-quick-link" :href="collectionPointPath(villageState.village)">Войска</a> </td> </tr> </template> @@ -198,7 +199,7 @@ import { path } from '../utils'; import ResourceBalance from './ResourceBalance'; import VillageResource from './VillageResource'; -import { HORSE_STABLE_ID, MARKET_ID, QUARTERS_ID, WAREHOUSE_ID } from '../Core/Buildings'; +import { COLLECTION_POINT_ID, HORSE_STABLE_ID, MARKET_ID, QUARTERS_ID, WAREHOUSE_ID } from '../Core/Buildings'; export default { components: { @@ -227,6 +228,9 @@ export default { warehousePath(village) { return path('/build.php', { newdid: village.id, gid: WAREHOUSE_ID }); }, + collectionPointPath(village) { + return path('/build.php', { newdid: village.id, gid: COLLECTION_POINT_ID, tt: 1 }); + }, quartersPath(village) { return path('/build.php', { newdid: village.id, gid: QUARTERS_ID }); },