mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
12 lines
266 B
JavaScript
12 lines
266 B
JavaScript
import content from '../content/index';
|
|
import i18n from '../i18n';
|
|
|
|
module.exports = function(user, type) {
|
|
var item;
|
|
item = content.gear.flat[user.items.gear.equipped[type]];
|
|
if (!item) {
|
|
return content.gear.flat[type + "_base_0"];
|
|
}
|
|
return item;
|
|
};
|