mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +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 },
|
||||
Saddle: { localeKey: 'foodSaddleText', isEquipment: false },
|
||||
};
|
||||
|
||||
export const USER_CAN_OWN_QUEST_CATEGORIES = [
|
||||
'unlockable',
|
||||
'gold',
|
||||
'pet',
|
||||
];
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
EVENTS,
|
||||
GEAR_TYPES,
|
||||
ITEM_LIST,
|
||||
USER_CAN_OWN_QUEST_CATEGORIES,
|
||||
} from './constants';
|
||||
|
||||
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 = {
|
||||
dilatory: {
|
||||
|
||||
Reference in New Issue
Block a user