fix(mobile): temp remove new unlock styles

This commit is contained in:
Sabe Jones
2016-11-24 06:06:11 +00:00
parent ac732b2c85
commit a5ad9c30f0
3 changed files with 13 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ let shops = {};
function lockQuest (quest, user) {
if (quest.lvl && user.stats.lvl < quest.lvl) return true;
if (quest.unlockCondition && quest.unlockCondition.condition === 'login incentive') {
if (quest.unlockCondition && (quest.key === 'moon1' || quest.key === 'moon2' || quest.key === 'moon3')) {
return user.loginIncentives < quest.unlockCondition.incentiveThreshold;
}
if (user.achievements.quests) return quest.previous && !user.achievements.quests[quest.previous];