|
|
@ -105,6 +105,7 @@ let game = new Vue({ |
|
|
|
price: 600, |
|
|
|
price: 600, |
|
|
|
priceMultiplicator: 2 |
|
|
|
priceMultiplicator: 2 |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// Wood is gone when production dies
|
|
|
|
{ |
|
|
|
{ |
|
|
|
name: 'Blacksmith', |
|
|
|
name: 'Blacksmith', |
|
|
|
resource: 'iron', |
|
|
|
resource: 'iron', |
|
|
@ -634,6 +635,25 @@ let game = new Vue({ |
|
|
|
transitionIn: 'boundInRight', |
|
|
|
transitionIn: 'boundInRight', |
|
|
|
transitionInMobile: '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(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|