VORE TIME
+
+
Your moves
-
-
+
+
+
{{actionDescription}}
Enemy moves
@@ -15,8 +18,13 @@
import { Component, Prop, Vue, Watch, Emit } from 'vue-property-decorator'
import { Creature, POV } from '@/game/entity'
import { log, LogEntry } from '@/game/interface'
+import Statblock from './Statblock.vue'
-@Component
+@Component(
+ {
+ components: { Statblock }
+ }
+)
export default class Combat extends Vue {
@Prop({ type: Creature, required: true })
player!: Creature
@@ -24,6 +32,8 @@ export default class Combat extends Vue {
@Prop({ type: Creature, required: true })
enemy!: Creature
+ actionDescription = ''
+
private log: (entry: LogEntry) => void;
constructor () {
diff --git a/src/components/ContainerView.vue b/src/components/ContainerView.vue
new file mode 100644
index 0000000..1d57fb3
--- /dev/null
+++ b/src/components/ContainerView.vue
@@ -0,0 +1,42 @@
+
+
+
{{container.name}}
+
Fullness: {{container.fullness}} / {{container.capacity}}
+
{{prey.name}}
+
+
+
+
+
+
+
diff --git a/src/components/Statblock.vue b/src/components/Statblock.vue
index bdfd859..3dd1b28 100644
--- a/src/components/Statblock.vue
+++ b/src/components/Statblock.vue
@@ -3,9 +3,10 @@
Stats
Player
Name: {{subject.name.all.capital}}
-
Health: {{subject.health.toFixed(0)}}
-
{{stat}}: {{subject.stats[stat]}}
+
Health: {{subject.health.toFixed(0)}} / {{subject.maxHealth.toFixed(0)}}
+
{{stat}}: {{subject.stats[stat]}}
Status: {{subject.state}}
+