Explorar el Código

Add stat displays

master
Fen Dweller hace 5 años
padre
commit
a3d976c942
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      src/components/Statblock.vue

+ 2
- 1
src/components/Statblock.vue Ver fichero

@@ -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>


Cargando…
Cancelar
Guardar