Przeglądaj źródła

Add stat displays

vintage
Fen Dweller 5 lat temu
rodzic
commit
a3d976c942
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      src/components/Statblock.vue

+ 2
- 1
src/components/Statblock.vue Wyświetl plik

@@ -2,8 +2,9 @@
<div class="statblock">
<h2>Stats</h2>
<div v-if="subject.perspective === firstperson">Player</div>
<div v-if="subject.perspective !== firstperson">Name: {{subject.name}}</div>
<div v-if="subject.perspective !== firstperson">Name: {{subject.name.all.capital}}</div>
<div>Health: {{subject.health.toFixed(0)}}</div>
<div v-for="stat in Object.keys(subject.stats)" :key="stat">{{stat}}: {{subject.stats[stat]}}</div>
<div>Status: {{subject.state}}</div>
</div>
</template>


Ładowanie…
Anuluj
Zapisz