mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
2023 November Content Prebuild (#14954)
* feat(content): October sub items * feat(content): October bgs and armoire * feat(content): add Dune Buddy achievement * feat(releases): timed Backgrounds and Armoire * feat(content): timed release achievement * feat(content): November subscriber items * feat(content): November pet quest bundle * feat(content): November magic hatching potions * feat(content): November backgrounds and armoire * feat(content): new achievement code -- needs work * update package.lock on local/origin repos * fix(content): added October headgear info and November set name * fix(typo): spelling is important * feat(content): added logic to allow for pets & mounts to be in one achievement and fixed issues with image * fix(armoire): correct month * fix(armoire): deprecate armoireEmpty flag --------- Co-authored-by: SabreCat <sabe@habitica.com> Co-authored-by: Sabe Jones <sabrecat@gmail.com>
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import forOwn from 'lodash/forOwn';
|
||||
import camelCase from 'lodash/camelCase';
|
||||
import forOwn from 'lodash/forOwn';
|
||||
import moment from 'moment';
|
||||
import omitBy from 'lodash/omitBy';
|
||||
import upperFirst from 'lodash/upperFirst';
|
||||
import t from '../translation';
|
||||
|
||||
/* eslint-disable camelcase */
|
||||
const backgrounds = {
|
||||
const plannedBackgrounds = {
|
||||
backgrounds062014: {
|
||||
beach: { },
|
||||
fairy_ring: { },
|
||||
@@ -585,6 +587,11 @@ const backgrounds = {
|
||||
monstrous_cave: { },
|
||||
jack_o_lantern_stacks: { },
|
||||
},
|
||||
backgrounds112023: {
|
||||
giant_cat: { },
|
||||
barrel_cellar: { },
|
||||
autumn_tree_tunnel: { },
|
||||
},
|
||||
eventBackgrounds: {
|
||||
birthday_bash: {
|
||||
price: 0,
|
||||
@@ -627,8 +634,16 @@ const backgrounds = {
|
||||
};
|
||||
/* eslint-enable quote-props */
|
||||
|
||||
const releaseDates = {
|
||||
backgrounds102023: '2023-10-10T08:00-04:00',
|
||||
backgrounds112023: '2023-11-07T08:00-05:00',
|
||||
};
|
||||
|
||||
const flat = {};
|
||||
|
||||
const backgrounds = omitBy(plannedBackgrounds, (bgSet, key) => releaseDates[key]
|
||||
&& moment().isBefore(releaseDates[key]));
|
||||
|
||||
forOwn(backgrounds, (backgroundsInSet, set) => {
|
||||
forOwn(backgroundsInSet, (background, bgKey) => {
|
||||
background.key = bgKey;
|
||||
|
||||
Reference in New Issue
Block a user