Feast 2.0!
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

44 Zeilen
932 B

  1. <template>
  2. <div v-if="container.fullness > 0" class="statblock">
  3. <h3>{{container.name.capital}}</h3>
  4. <div>{{container.fullness}} / {{container.capacity}}</div>
  5. <div v-for="(prey, index) in container.contents" :key="'prey-' + index">{{prey.name}}</div>
  6. </div>
  7. </template>
  8. <script lang="ts">
  9. import { Component, Prop, Vue, Watch, Emit } from 'vue-property-decorator'
  10. import { Creature, POV } from '@/game/entity'
  11. import { Stats, Stat } from '@/game/combat'
  12. import { Container } from '@/game/vore'
  13. @Component
  14. export default class ContainerView extends Vue {
  15. @Prop({ required: true })
  16. container!: Container
  17. constructor () {
  18. super()
  19. }
  20. }
  21. </script>
  22. <!-- Add "scoped" attribute to limit CSS to this component only -->
  23. <style scoped>
  24. h3 {
  25. margin: 40px 0 0;
  26. font-size: 125%;
  27. }
  28. ul {
  29. list-style-type: none;
  30. padding: 0;
  31. }
  32. li {
  33. display: inline-block;
  34. margin: 0 10px;
  35. }
  36. a {
  37. color: #42b983;
  38. }
  39. </style>