mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Explicitely adding the false value rather than relying on undefined returns. Oops
This commit is contained in:
parent
459f87f24c
commit
5074a65183
1 changed files with 14 additions and 12 deletions
|
|
@ -445,20 +445,22 @@ export default class DhCharacter extends BaseDataActor {
|
||||||
if (item.system.originItemType !== CONFIG.DH.ITEM.featureTypes.subclass.id) {
|
if (item.system.originItemType !== CONFIG.DH.ITEM.featureTypes.subclass.id) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (this.class.subclass) {
|
if (!this.class.subclass) return false;
|
||||||
const prop = item.system.multiclassOrigin ? 'multiclass' : 'class';
|
|
||||||
const subclassState = this[prop].subclass?.system?.featureState;
|
|
||||||
if (!subclassState) return false;
|
|
||||||
|
|
||||||
if (
|
const prop = item.system.multiclassOrigin ? 'multiclass' : 'class';
|
||||||
item.system.identifier === CONFIG.DH.ITEM.featureSubTypes.foundation ||
|
const subclassState = this[prop].subclass?.system?.featureState;
|
||||||
(item.system.identifier === CONFIG.DH.ITEM.featureSubTypes.specialization &&
|
if (!subclassState) return false;
|
||||||
subclassState >= 2) ||
|
|
||||||
(item.system.identifier === CONFIG.DH.ITEM.featureSubTypes.mastery && subclassState >= 3)
|
if (
|
||||||
) {
|
item.system.identifier === CONFIG.DH.ITEM.featureSubTypes.foundation ||
|
||||||
return true;
|
(item.system.identifier === CONFIG.DH.ITEM.featureSubTypes.specialization &&
|
||||||
|
subclassState >= 2) ||
|
||||||
|
(item.system.identifier === CONFIG.DH.ITEM.featureSubTypes.mastery && subclassState >= 3)
|
||||||
|
) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get sheetLists() {
|
get sheetLists() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue