mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
split remaining utilities from shared
This commit is contained in:
7
common/script/libs/gold.js
Normal file
7
common/script/libs/gold.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = function(num) {
|
||||
if (num) {
|
||||
return Math.floor(num);
|
||||
} else {
|
||||
return "0";
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user