From b0ebeb8c2c447ec94487843699c017c45496433d Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 21 Oct 2013 10:25:27 -0700 Subject: [PATCH] grunt build --- dist/habitrpg-shared.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index 19c6acfc61..c6032b0cd1 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -8360,7 +8360,7 @@ var process=require("__browserify_process");(function() { gold: function(num) { if (num) { - return num.toFixed(1).split('.')[0]; + return Math.floor(num); } else { return "0"; } @@ -8371,7 +8371,7 @@ var process=require("__browserify_process");(function() { silver: function(num) { if (num) { - return num.toFixed(2).split('.')[1]; + return ("0" + Math.floor((num - Math.floor(num)) * 100)).slice(-2); } else { return "00"; }