Browse Source

Fix;

master
Nero Ignis 4 years ago
parent
commit
3e5f9fd330
  1. 38
      js/app.js

38
js/app.js

@ -406,26 +406,24 @@ let game = new Vue({
}, },
isQuestRedeemable() { isQuestRedeemable() {
console.log( console.log(this.resources.wood + ' wood available');
this.resources.wood + ' wood available', console.log(this.currentQuest.wood + ' wood needed in quest');
this.currentQuest.wood + ' wood needed in quest', console.log(this.resources.wood >= this.currentQuest.wood);
this.resources.wood >= this.currentQuest.wood, console.log(this.resources.stone + ' stone available');
this.resources.stone + ' stone available', console.log(this.currentQuest.stone + ' wood needed in quest');
this.currentQuest.stone + ' wood needed in quest', console.log(this.resources.stone >= this.currentQuest.stone);
this.resources.stone >= this.currentQuest.stone, console.log(this.resources.iron + ' iron available');
this.resources.iron + ' iron available', console.log(this.currentQuest.iron + ' wood needed in quest');
this.currentQuest.iron + ' wood needed in quest', console.log(this.resources.iron >= this.currentQuest.iron);
this.resources.iron >= this.currentQuest.iron, console.log(this.resources.bricks + ' bricks available');
this.resources.bricks + ' bricks available', console.log(this.currentQuest.bricks + ' wood needed in quest');
this.currentQuest.bricks + ' wood needed in quest', console.log(this.resources.bricks >= this.currentQuest.bricks);
this.resources.bricks >= this.currentQuest.bricks, console.log(this.resources.corn + ' corn available');
this.resources.corn + ' corn available', console.log(this.currentQuest.corn + ' wood needed in quest');
this.currentQuest.corn + ' wood needed in quest', console.log(this.resources.corn >= this.currentQuest.corn);
this.resources.corn >= this.currentQuest.corn, console.log(this.resources.coal + ' coal available');
this.resources.coal + ' coal available', console.log(this.currentQuest.coal + ' wood needed in quest');
this.currentQuest.coal + ' wood needed in quest', console.log(this.resources.coal >= this.currentQuest.coal);
this.resources.coal >= this.currentQuest.coal
);
return ( return (
this.resources.wood >= this.currentQuest.wood && this.resources.wood >= this.currentQuest.wood &&

Loading…
Cancel
Save