Ensured that properties that are removed don't show up on the character sheet

This commit is contained in:
Thaum Rystra
2020-04-28 14:51:53 +02:00
parent 528e53fc9b
commit ee0fb72d56

View File

@@ -265,7 +265,8 @@
let con = CreatureProperties.findOne({ let con = CreatureProperties.findOne({
'ancestors.id': this.creatureId, 'ancestors.id': this.creatureId,
type: 'attribute', type: 'attribute',
variableName: 'constitution' variableName: 'constitution',
removed: {$ne: true},
}); });
let conMod = con && con.mod; let conMod = con && con.mod;
return { return {
@@ -283,6 +284,7 @@
'ancestors.id': this.creatureId, 'ancestors.id': this.creatureId,
type: 'skill', type: 'skill',
skillType: 'check', skillType: 'check',
removed: {$ne: true},
}, { }, {
sort: {order: 1}, sort: {order: 1},
}); });
@@ -292,6 +294,7 @@
'ancestors.id': this.creatureId, 'ancestors.id': this.creatureId,
type: 'skill', type: 'skill',
skillType: 'save', skillType: 'save',
removed: {$ne: true},
}, { }, {
sort: {order: 1}, sort: {order: 1},
}); });
@@ -301,6 +304,7 @@
'ancestors.id': this.creatureId, 'ancestors.id': this.creatureId,
type: 'skill', type: 'skill',
skillType: 'skill', skillType: 'skill',
removed: {$ne: true},
}, { }, {
sort: {order: 1}, sort: {order: 1},
}); });
@@ -309,6 +313,7 @@
return CreatureProperties.find({ return CreatureProperties.find({
'ancestors.id': this.creatureId, 'ancestors.id': this.creatureId,
type: 'action', type: 'action',
removed: {$ne: true},
}, { }, {
sort: {order: 1}, sort: {order: 1},
}); });
@@ -317,6 +322,7 @@
return CreatureProperties.find({ return CreatureProperties.find({
'ancestors.id': this.creatureId, 'ancestors.id': this.creatureId,
type: 'attack', type: 'attack',
removed: {$ne: true},
}, { }, {
sort: {order: 1}, sort: {order: 1},
}); });