diff --git a/common/dist/scripts/habitrpg-shared.js b/common/dist/scripts/habitrpg-shared.js index 1ce91e2cb4..5d8494569d 100644 --- a/common/dist/scripts/habitrpg-shared.js +++ b/common/dist/scripts/habitrpg-shared.js @@ -7049,7 +7049,7 @@ api.wrap = function(user, main) { {user} */ cron: function(options) { - var clearBuffs, daysMissed, expTally, lvl, lvlDiv2, now, perfect, plan, progress, todoTally, _base, _base1, _base2, _base3, _progress, _ref, _ref1, _ref2; + var clearBuffs, daysMissed, expTally, lvl, lvlDiv2, now, perfect, plan, progress, todoTally, _base, _base1, _base2, _base3, _base4, _progress, _ref, _ref1, _ref2, _ref3; if (options == null) { options = {}; } @@ -7222,6 +7222,13 @@ api.wrap = function(user, main) { if (user.stats.mp > user._statsComputed.maxMP) { user.stats.mp = user._statsComputed.maxMP; } + if ((_base4 = user.flags).cronCount == null) { + _base4.cronCount = 0; + } + user.flags.cronCount++; + if ((_ref3 = options.ga) != null) { + _ref3.event('cron', user.flags.cronCount).send(); + } progress = user.party.quest.progress; _progress = _.cloneDeep(progress); _.merge(progress, { diff --git a/common/script/index.coffee b/common/script/index.coffee index ab1e23904b..2d55370df3 100644 --- a/common/script/index.coffee +++ b/common/script/index.coffee @@ -1559,6 +1559,11 @@ api.wrap = (user, main=true) -> user.stats.mp += _.max([10,.1 * user._statsComputed.maxMP]) user.stats.mp = user._statsComputed.maxMP if user.stats.mp > user._statsComputed.maxMP + # Analytics + user.flags.cronCount?=0 + user.flags.cronCount++ + options.ga?.event('cron', user.flags.cronCount).send(); #TODO userId for cohort + # After all is said and done, progress up user's effect on quest, return those values & reset the user's progress = user.party.quest.progress; _progress = _.cloneDeep progress _.merge progress, {down:0,up:0} diff --git a/website/public/js/services/guideServices.js b/website/public/js/services/guideServices.js index 534a5c972d..e2c85b370d 100644 --- a/website/public/js/services/guideServices.js +++ b/website/public/js/services/guideServices.js @@ -155,7 +155,7 @@ function($rootScope, User, $timeout, $state) { } _.each(chapters, function(chapter, k){ - _(chapter).flatten().each(function(step) { + _(chapter).flatten().each(function(step, i) { step.content = "