|
|
@ -295,6 +295,16 @@ let game = new Vue({ |
|
|
|
this.bricks >= this.currentQuest.bricks && |
|
|
|
this.bricks >= this.currentQuest.bricks && |
|
|
|
this.corn >= this.currentQuest.corn |
|
|
|
this.corn >= this.currentQuest.corn |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
redeemQuest() { |
|
|
|
|
|
|
|
if (this.isQuestRedeemable()) { |
|
|
|
|
|
|
|
this.money += this.currentQuest.reward; |
|
|
|
|
|
|
|
this.generateQuest(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|