Move potion and armoire into separate modules

This commit is contained in:
Blade Barringer
2015-09-23 17:28:20 -05:00
parent 3578e05979
commit 6f8511c6a6
3 changed files with 34 additions and 16 deletions

View File

@@ -0,0 +1,20 @@
import {contains} from 'lodash';
import {translator as t} from './helpers';
let armoire = {
type: 'armoire',
text: t('armoireText'),
notes: ((user, count) => {
if (user.flags.armoireEmpty) {
return t('armoireNotesEmpty')();
}
return t('armoireNotesFull')() + count;
}),
value: 100,
key: 'armoire',
canOwn: ((user) => {
return contains(user.achievements.ultimateGearSets, true);
})
};
export default armoire;

View File

@@ -0,0 +1,11 @@
import {translator as t} from './helpers';
let potion = {
type: 'potion',
text: t('potionText'),
notes: t('potionNotes'),
value: 25,
key: 'potion',
};
export default potion;