mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
concatenate quest constant arrays into a single quests variable
This commit is contained in:
@@ -7,22 +7,22 @@ import t from './translation';
|
|||||||
import {
|
import {
|
||||||
USER_CAN_OWN_QUEST_CATEGORIES,
|
USER_CAN_OWN_QUEST_CATEGORIES,
|
||||||
QUEST_GENERIC,
|
QUEST_GENERIC,
|
||||||
QUEST_SERIES,
|
|
||||||
QUEST_MASTERCLASSER,
|
QUEST_MASTERCLASSER,
|
||||||
QUEST_SEASONAL,
|
|
||||||
QUEST_PETS,
|
QUEST_PETS,
|
||||||
QUEST_POTIONS,
|
QUEST_POTIONS,
|
||||||
|
QUEST_SEASONAL,
|
||||||
|
QUEST_SERIES,
|
||||||
QUEST_TIME_TRAVEL,
|
QUEST_TIME_TRAVEL,
|
||||||
QUEST_WORLD,
|
QUEST_WORLD,
|
||||||
} from './constants';
|
} from './constants';
|
||||||
|
|
||||||
const userCanOwnQuestCategories = USER_CAN_OWN_QUEST_CATEGORIES;
|
const userCanOwnQuestCategories = USER_CAN_OWN_QUEST_CATEGORIES;
|
||||||
const questGeneric = QUEST_GENERIC;
|
const questGeneric = QUEST_GENERIC;
|
||||||
const questSeries = QUEST_SERIES;
|
|
||||||
const questMasterclasser = QUEST_MASTERCLASSER;
|
const questMasterclasser = QUEST_MASTERCLASSER;
|
||||||
const questSeasonal = QUEST_SEASONAL;
|
|
||||||
const questPets = QUEST_PETS;
|
const questPets = QUEST_PETS;
|
||||||
const questPotions = QUEST_POTIONS;
|
const questPotions = QUEST_POTIONS;
|
||||||
|
const questSeasonal = QUEST_SEASONAL;
|
||||||
|
const questSeries = QUEST_SERIES;
|
||||||
const questTimeTravel = QUEST_TIME_TRAVEL;
|
const questTimeTravel = QUEST_TIME_TRAVEL;
|
||||||
const questWorld = QUEST_WORLD;
|
const questWorld = QUEST_WORLD;
|
||||||
|
|
||||||
@@ -31,16 +31,15 @@ const questWorld = QUEST_WORLD;
|
|||||||
// I've added an additional ayer to the tree that the api and the rest of the
|
// I've added an additional ayer to the tree that the api and the rest of the
|
||||||
// code in this file are not expecting hence api.quests not being found
|
// code in this file are not expecting hence api.quests not being found
|
||||||
|
|
||||||
const quests = [
|
const quests = questGeneric.concat(
|
||||||
questGeneric,
|
|
||||||
questSeries,
|
|
||||||
questMasterclasser,
|
questMasterclasser,
|
||||||
questSeasonal,
|
|
||||||
questPets,
|
questPets,
|
||||||
questPotions,
|
questPotions,
|
||||||
|
questSeasonal,
|
||||||
|
questSeries,
|
||||||
questTimeTravel,
|
questTimeTravel,
|
||||||
questWorld,
|
questWorld,
|
||||||
];
|
);
|
||||||
console.log(quests);
|
console.log(quests);
|
||||||
each(quests, (v, key) => {
|
each(quests, (v, key) => {
|
||||||
defaults(v, {
|
defaults(v, {
|
||||||
|
|||||||
Reference in New Issue
Block a user