|
|
|
@ -1,11 +1,3 @@
@@ -1,11 +1,3 @@
|
|
|
|
|
Storage.prototype.setObj = function(key, obj) { |
|
|
|
|
return this.setItem(key, JSON.stringify(obj)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Storage.prototype.getObj = function(key) { |
|
|
|
|
return JSON.parse(this.getItem(key)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let game = new Vue({ |
|
|
|
|
el: '#root', |
|
|
|
|
data: { |
|
|
|
@ -515,7 +507,7 @@ let game = new Vue({
@@ -515,7 +507,7 @@ let game = new Vue({
|
|
|
|
|
let rewardSum = 0; |
|
|
|
|
|
|
|
|
|
const maxResourcesPerQuest = 3; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let unlockedResources = []; |
|
|
|
|
Object.keys(game.resources).forEach((resource) => { |
|
|
|
|
if (game.resources[resource].unlocked && resource !== 'gold') { |
|
|
|
|