mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 04:44:16 +02:00
Fixed that new weapons couldn't be created on the Character Sheet
This commit is contained in:
parent
b8e00b2807
commit
4d17a7d9bf
1 changed files with 4 additions and 3 deletions
|
|
@ -725,7 +725,7 @@ export default function DHApplicationMixin(Base) {
|
|||
: null
|
||||
: this.document;
|
||||
|
||||
let systemData = {};
|
||||
let systemData = null;
|
||||
if (featureOnCharacter) {
|
||||
systemData = {
|
||||
originItemType: this.document.type,
|
||||
|
|
@ -738,10 +738,11 @@ export default function DHApplicationMixin(Base) {
|
|||
|
||||
const data = {
|
||||
name: cls.defaultName({ type, parent }),
|
||||
type,
|
||||
system: systemData
|
||||
type
|
||||
};
|
||||
|
||||
if (systemData) data.system = systemData;
|
||||
|
||||
if (inVault) data['system.inVault'] = true;
|
||||
if (disabled) data.disabled = true;
|
||||
if (type === 'domainCard' && parent?.system.domains?.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue