mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Move user can own quest categories constant to constants module.
This commit is contained in:
@@ -50,3 +50,9 @@ export const ITEM_LIST = {
|
|||||||
food: { localeKey: 'foodText', isEquipment: false },
|
food: { localeKey: 'foodText', isEquipment: false },
|
||||||
Saddle: { localeKey: 'foodSaddleText', isEquipment: false },
|
Saddle: { localeKey: 'foodSaddleText', isEquipment: false },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const USER_CAN_OWN_QUEST_CATEGORIES = [
|
||||||
|
'unlockable',
|
||||||
|
'gold',
|
||||||
|
'pet',
|
||||||
|
];
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import {
|
|||||||
EVENTS,
|
EVENTS,
|
||||||
GEAR_TYPES,
|
GEAR_TYPES,
|
||||||
ITEM_LIST,
|
ITEM_LIST,
|
||||||
|
USER_CAN_OWN_QUEST_CATEGORIES,
|
||||||
} from './constants';
|
} from './constants';
|
||||||
|
|
||||||
import mysterySets from './mystery-sets';
|
import mysterySets from './mystery-sets';
|
||||||
@@ -4810,7 +4811,7 @@ _.each(api.food, function(food, key) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
api.userCanOwnQuestCategories = ['unlockable', 'gold', 'pet'];
|
api.userCanOwnQuestCategories = USER_CAN_OWN_QUEST_CATEGORIES;
|
||||||
|
|
||||||
api.quests = {
|
api.quests = {
|
||||||
dilatory: {
|
dilatory: {
|
||||||
|
|||||||
Reference in New Issue
Block a user