diff --git a/public/js/controllers/headerCtrl.js b/public/js/controllers/headerCtrl.js index 369f0bfc85a..d039bca7bbb 100644 --- a/public/js/controllers/headerCtrl.js +++ b/public/js/controllers/headerCtrl.js @@ -3,6 +3,7 @@ habitrpg.controller("HeaderCtrl", ['$scope', 'Groups', 'User', function($scope, Groups, User) { + $scope.Math = window.Math; $scope.party = Groups.party(function(){ $scope.partyMinusSelf = _.sortBy( diff --git a/views/shared/header/header.jade b/views/shared/header/header.jade index d8a8ae1e764..c08ab5e2ede 100644 --- a/views/shared/header/header.jade +++ b/views/shared/header/header.jade @@ -14,12 +14,12 @@ .bar(style='width: {{Shared.percent(user.stats.hp, 50)}}%;') span.meter-text i.icon-heart - | {{user.stats.hp | number:0}} / 50 + | {{Math.ceil(user.stats.hp)}} / 50 .meter.experience(title='Experience') .bar(style='width: {{Shared.percent(user.stats.exp,Shared.tnl(user.stats.lvl))}}%;') span.meter-text i.icon-star - | {{user.stats.exp | number:0}} / {{Shared.tnl(user.stats.lvl) | number:0}} + | {{Math.floor(user.stats.exp)}} / {{Shared.tnl(user.stats.lvl) | number:0}} // FIXME doesn't look great here, but the "Experience" CSS title rollover covers it where it was before span(ng-show='user.history.exp') a(ng-click='toggleChart("exp")', tooltip='Progress') @@ -28,7 +28,7 @@ .bar(style='width: {{user.stats.mp / user._statsComputed.maxMP * 100}}%;') span.meter-text i.icon-fire - | {{user.stats.mp || 0 | number:0}} / {{user._statsComputed.maxMP}} + | {{Math.floor(user.stats.mp)}} / {{user._statsComputed.maxMP}} // party span(ng-controller='PartyCtrl')