split user.fns

This commit is contained in:
Matteo Pagliazzi
2016-03-08 18:58:39 +01:00
parent 393a26e51a
commit bb6f0f4252
21 changed files with 808 additions and 704 deletions

View File

@@ -0,0 +1,11 @@
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;
};