mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 23:42:12 +00:00
grunt build
This commit is contained in:
parent
b3ba04de0f
commit
b0ebeb8c2c
1 changed files with 2 additions and 2 deletions
4
dist/habitrpg-shared.js
vendored
4
dist/habitrpg-shared.js
vendored
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue