Feast 2.0!
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 

43 行
915 B

  1. <template>
  2. <div v-if="container.fullness > 0" class="statblock">
  3. <h3>{{container.name}}</h3>
  4. <div>Fullness: {{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. }
  27. ul {
  28. list-style-type: none;
  29. padding: 0;
  30. }
  31. li {
  32. display: inline-block;
  33. margin: 0 10px;
  34. }
  35. a {
  36. color: #42b983;
  37. }
  38. </style>