diff --git a/public/js/filters/filters.js b/public/js/filters/filters.js index f2ba025772..292318da13 100644 --- a/public/js/filters/filters.js +++ b/public/js/filters/filters.js @@ -13,4 +13,9 @@ angular.module('habitrpg') return function(html){ return $('
').html(html).text(); } + }) + .filter('goldRoundThousandsToK', function(){ + return function (gp) { + return (gp > 999) ? (Math.floor(gp / 100) / 10.0 + 'K') : gp; + } }) \ No newline at end of file