mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
34 lines
655 B
JavaScript
34 lines
655 B
JavaScript
import forOwn from 'lodash/forOwn';
|
|
import clone from 'lodash/clone';
|
|
import hair from './hair';
|
|
import shirts from './shirt';
|
|
import skins from './skin';
|
|
import sizes from './size';
|
|
import backgrounds from './backgrounds';
|
|
import chairs from './chair';
|
|
|
|
const reorderedBgs = {};
|
|
|
|
forOwn(backgrounds, (value, key) => {
|
|
forOwn(value, (bgObject, bgKey) => {
|
|
const bg = clone(bgObject);
|
|
bg.set = {
|
|
text: key,
|
|
key,
|
|
setPrice: 15,
|
|
};
|
|
reorderedBgs[bgKey] = bg;
|
|
});
|
|
});
|
|
|
|
const appearances = {
|
|
hair,
|
|
shirt: shirts,
|
|
size: sizes,
|
|
skin: skins,
|
|
chair: chairs,
|
|
background: reorderedBgs,
|
|
};
|
|
|
|
export default appearances;
|