feat(dilatory): scene damage + boss def/str. bug fixes, tests

This commit is contained in:
Tyler Renelle
2014-06-16 13:59:14 -06:00
parent 79df201c66
commit 9f1035c317
8 changed files with 148 additions and 53 deletions
+5 -1
View File
@@ -148,6 +148,7 @@ module.exports.locals = function(req, res, next) {
// Load moment.js language file only when not on static pages
language.momentLang = ((!isStaticPage && i18n.momentLangs[language.code]) || undefined);
var tavern = require('./models/group').tavern;
res.locals.habitrpg = {
NODE_ENV: nconf.get('NODE_ENV'),
BASE_URL: nconf.get('BASE_URL'),
@@ -166,7 +167,10 @@ module.exports.locals = function(req, res, next) {
return shared.i18n.t.apply(null, args);
},
siteVersion: siteVersion,
Content: shared.content
Content: shared.content,
tavern: tavern, // for world boss
worldDmg: (tavern && tavern.quest && tavern.quest.extra && tavern.quest.extra.worldDmg) || {}
}
next();