mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Corrected order of backgrounds
This commit is contained in:
@@ -5,24 +5,24 @@ import {
|
||||
} from './helpers';
|
||||
|
||||
let sets = {
|
||||
'062014': ['beach', 'fairy_ring', 'forest'],
|
||||
'072014': ['open_waters', 'coral_reef', 'seafarer_ship'],
|
||||
'082014': ['volcano', 'clouds', 'dusty_canyons'],
|
||||
'092014': ['thunderstorm', 'autumn_forest', 'harvest_fields'],
|
||||
'102014': ['graveyard', 'haunted_house', 'pumpkin_patch'],
|
||||
'112014': ['harvest_feast', 'sunset_meadow', 'starry_skies'],
|
||||
'122014': ['iceberg', 'twinkly_lights', 'south_pole'],
|
||||
'012015': ['ice_cave', 'frigid_peak', 'snowy_pines'],
|
||||
'022015': ['blacksmithy', 'crystal_cave', 'distant_castle'],
|
||||
'032015': ['spring_rain', 'stained_glass', 'rolling_hills'],
|
||||
'042015': ['cherry_trees', 'floral_meadow', 'gumdrop_land'],
|
||||
'052015': ['marble_temple', 'mountain_lake', 'pagodas'],
|
||||
'062015': ['drifting_raft', 'shimmery_bubbles', 'island_waterfalls'],
|
||||
'072015': ['dilatory_ruins', 'giant_wave', 'sunken_ship'],
|
||||
'082015': ['pyramids', 'sunset_savannah', 'twinkly_party_lights'],
|
||||
'092015': ['market', 'stable', 'tavern'],
|
||||
'backgrounds062014': ['beach', 'fairy_ring', 'forest'],
|
||||
'backgrounds072014': ['open_waters', 'coral_reef', 'seafarer_ship'],
|
||||
'backgrounds082014': ['volcano', 'clouds', 'dusty_canyons'],
|
||||
'backgrounds092014': ['thunderstorm', 'autumn_forest', 'harvest_fields'],
|
||||
'backgrounds102014': ['graveyard', 'haunted_house', 'pumpkin_patch'],
|
||||
'backgrounds112014': ['harvest_feast', 'sunset_meadow', 'starry_skies'],
|
||||
'backgrounds122014': ['iceberg', 'twinkly_lights', 'south_pole'],
|
||||
'backgrounds012015': ['ice_cave', 'frigid_peak', 'snowy_pines'],
|
||||
'backgrounds022015': ['blacksmithy', 'crystal_cave', 'distant_castle'],
|
||||
'backgrounds032015': ['spring_rain', 'stained_glass', 'rolling_hills'],
|
||||
'backgrounds042015': ['cherry_trees', 'floral_meadow', 'gumdrop_land'],
|
||||
'backgrounds052015': ['marble_temple', 'mountain_lake', 'pagodas'],
|
||||
'backgrounds062015': ['drifting_raft', 'shimmery_bubbles', 'island_waterfalls'],
|
||||
'backgrounds072015': ['dilatory_ruins', 'giant_wave', 'sunken_ship'],
|
||||
'backgrounds082015': ['pyramids', 'sunset_savannah', 'twinkly_party_lights'],
|
||||
'backgrounds092015': ['market', 'stable', 'tavern'],
|
||||
};
|
||||
|
||||
let backgrounds = generateBackgrounds(sets);
|
||||
generateBackgrounds(sets);
|
||||
|
||||
export default backgrounds;
|
||||
export default sets;
|
||||
|
||||
@@ -164,23 +164,18 @@ export function setGearSetDefaults(gearSet, options={}) {
|
||||
//----------------------------------------
|
||||
|
||||
export function generateBackgrounds(sets) {
|
||||
let backgrounds = {};
|
||||
|
||||
each(sets, (names, set) => {
|
||||
let setName = `backgrounds${set}`;
|
||||
backgrounds[setName] = {};
|
||||
sets[set] = {};
|
||||
|
||||
each(names, (name) => {
|
||||
let formattedName = formatForTranslator(name);
|
||||
|
||||
backgrounds[setName][name] = {
|
||||
sets[set][name] = {
|
||||
text: translator(`background${formattedName}Text`),
|
||||
notes: translator(`background${formattedName}Notes`),
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
return backgrounds;
|
||||
};
|
||||
|
||||
export function generateEggs(set, options={}) {
|
||||
|
||||
Reference in New Issue
Block a user