mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Attempt at making subclass aware of its class
This commit is contained in:
parent
b83adbf09b
commit
6746190168
5 changed files with 272 additions and 235 deletions
|
|
@ -432,12 +432,16 @@ export default class DhCharacterCreation extends HandlebarsApplicationMixin(Appl
|
|||
}
|
||||
};
|
||||
|
||||
if (type == 'domains')
|
||||
if (type === 'domains')
|
||||
presets.filter = {
|
||||
'level.max': { key: 'level.max', value: 1 },
|
||||
'system.domain': { key: 'system.domain', value: this.setup.class?.system.domains ?? null }
|
||||
};
|
||||
|
||||
if (type === 'subclasses')
|
||||
presets.filter = {
|
||||
'system.linkedClass': { key: 'system.linkedClass', value: this.setup.class?.uuid }
|
||||
};
|
||||
if (equipment.includes(type))
|
||||
presets.filter = {
|
||||
'system.tier': { key: 'system.tier', value: 1 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue