diff --git a/src/App.vue b/src/App.vue
index adb8ad1..9733f41 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -3,7 +3,7 @@
-
+
@@ -33,6 +33,7 @@ import { Town } from './game/maps/town'
data () {
return {
world: null,
+ home: null,
profileOn: false,
props: {
Explore: {
@@ -74,8 +75,13 @@ export default class App extends Vue {
player.items.push(new Items.Mace())
player.items.push(new Items.Dagger())
this.$data.world = new World(player)
+ this.$data.home = Town()
+ player.location = this.$data.home
+ }
- player.location = Town()
+ gameOver () {
+ this.$data.world.encounter = null
+ this.$data.world.player.location = this.$data.home
}
}
diff --git a/src/components/Combat.vue b/src/components/Combat.vue
index da4d46e..ebafcd1 100644
--- a/src/components/Combat.vue
+++ b/src/components/Combat.vue
@@ -42,10 +42,13 @@
-