diff --git a/index.html b/index.html index 75ca4b5..49f6b1b 100644 --- a/index.html +++ b/index.html @@ -155,6 +155,22 @@ + +
diff --git a/js/app.js b/js/app.js index 43457d3..ce455f3 100644 --- a/js/app.js +++ b/js/app.js @@ -105,6 +105,7 @@ let game = new Vue({ price: 600, priceMultiplicator: 2 }, + // Wood is gone when production dies { name: 'Blacksmith', resource: 'iron', @@ -634,6 +635,25 @@ let game = new Vue({ transitionIn: 'boundInRight', transitionInMobile: 'boundInRight' }); + }, + + // Debug & Testing + removeBlackSmith() { + this.buildings[5].isOwned = false; + this.saveBuildingsToStorage(); + location.reload(); + }, + + reset(hard = false) { + localStorage.removeItem('buildings' + this.version); + localStorage.removeItem('hadResource' + this.version); + localStorage.removeItem('currentQuest' + this.version); + + if (hard) { + localStorage.removeItem('resources' + this.version); + } + + location.reload(); } } });