Adjsut string to take in interpolation

This commit is contained in:
Blade Barringer
2015-10-19 08:03:27 -05:00
parent 931d688637
commit 1a2510e4da
3 changed files with 14 additions and 2 deletions

View File

@@ -202,6 +202,18 @@ habitrpg.controller('SettingsCtrl',
});
}
$scope.gemGoldCap = function(subscription) {
var baseCap = 25;
var gemCapExtra = User.user.purchased.plan.consecutive.gemCapExtra;
var blocks = Content.subscriptionBlocks[subscription.key].months / 3 * 5;
var flooredBlocks = Math.floor(blocks);
var userTotalDropCap = baseCap + gemCapExtra + flooredBlocks;
var maxDropCap = 50;
return [userTotalDropCap, maxDropCap];
}
function _calculateNextCron() {
$scope.dayStart;