40 lines
1.2 KiB
Vue
40 lines
1.2 KiB
Vue
|
|
<script setup lang="ts">
|
||
|
|
import type { Population } from '~/types/game'
|
||
|
|
|
||
|
|
defineProps<{ population: Population }>()
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<section>
|
||
|
|
<h2>{{ $t('village.population.title') }}</h2>
|
||
|
|
<table>
|
||
|
|
<tbody>
|
||
|
|
<tr>
|
||
|
|
<th>{{ $t('village.population.food_budget') }}</th>
|
||
|
|
<td>{{ $t('village.population.food_per_hour', { value: population.food_budget }) }}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>{{ $t('village.population.upkeep') }}</th>
|
||
|
|
<td>{{ $t('village.population.food_per_hour', { value: population.upkeep }) }}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>{{ $t('village.population.villagers') }}</th>
|
||
|
|
<td>{{ population.villagers }}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>{{ $t('village.population.workers') }}</th>
|
||
|
|
<td>{{ population.workers }}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>{{ $t('village.population.idle') }}</th>
|
||
|
|
<td>{{ population.villagers - population.workers }}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>{{ $t('village.population.soldiers') }}</th>
|
||
|
|
<td>{{ population.soldiers }}</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</section>
|
||
|
|
</template>
|