feat(dilatory): model updates for tavern bosses

This commit is contained in:
Tyler Renelle
2014-06-06 18:30:10 -06:00
parent 7107f2d323
commit fad4e5bb02
2 changed files with 57 additions and 7 deletions
+2
View File
@@ -226,8 +226,10 @@ api.cron = function(req, res, next) {
ranCron = user.isModified(),
quest = shared.content.quests[user.party.quest.key];
if (ranCron) res.locals.wasModified = true;
if (!ranCron) return next(null,user);
Group.tavernBoss(user,progress);
if (!quest) return user.save(next);
// If user is on a quest, roll for boss & player, or handle collections