mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Revert armoire counting code back to old system
@TODO: work out why it's hpapening and unpend test for new system
This commit is contained in:
@@ -41,7 +41,7 @@ function mountMasterProgress(mounts) {
|
||||
function remainingGearInSet(userGear, set) {
|
||||
var gear = _.filter(content.gear.flat, function(item) {
|
||||
var setMatches = item.klass === set;
|
||||
var hasItem = _.has(userGear, item.key);
|
||||
var hasItem = userGear[item.key];
|
||||
|
||||
return setMatches && !hasItem;
|
||||
});
|
||||
|
||||
@@ -100,7 +100,7 @@ describe('count', function() {
|
||||
expect(armoireCount).to.eql(20);
|
||||
});
|
||||
|
||||
it('includes previously owned items in count', function() {
|
||||
it.skip('includes previously owned items in count (https://github.com/HabitRPG/habitrpg/issues/5624#issuecomment-124018717)', function() {
|
||||
var gear = {
|
||||
'weapon_warrior_0':false,
|
||||
'weapon_warrior_1':false,
|
||||
|
||||
Reference in New Issue
Block a user