mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +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,5 +1,6 @@
|
||||
import each from 'lodash/each';
|
||||
import filter from 'lodash/filter';
|
||||
import has from 'lodash/has';
|
||||
import keys from 'lodash/keys';
|
||||
import size from 'lodash/size';
|
||||
import content from './content/index';
|
||||
@@ -50,7 +51,9 @@ export function remainingGearInSet (userGear = {}, set) {
|
||||
const gear = filter(content.gear.flat, item => {
|
||||
const setMatches = item.klass === set;
|
||||
const hasItem = userGear[item.key];
|
||||
|
||||
if (has(item, 'released')) {
|
||||
return item.released && setMatches && !hasItem;
|
||||
}
|
||||
return setMatches && !hasItem;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user