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
|
: null
|
||||||
: this.document;
|
: this.document;
|
||||||
|
|
||||||
let systemData = {};
|
let systemData = null;
|
||||||
if (featureOnCharacter) {
|
if (featureOnCharacter) {
|
||||||
systemData = {
|
systemData = {
|
||||||
originItemType: this.document.type,
|
originItemType: this.document.type,
|
||||||
|
|
@ -738,10 +738,11 @@ export default function DHApplicationMixin(Base) {
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
name: cls.defaultName({ type, parent }),
|
name: cls.defaultName({ type, parent }),
|
||||||
type,
|
type
|
||||||
system: systemData
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (systemData) data.system = systemData;
|
||||||
|
|
||||||
if (inVault) data['system.inVault'] = true;
|
if (inVault) data['system.inVault'] = true;
|
||||||
if (disabled) data.disabled = true;
|
if (disabled) data.disabled = true;
|
||||||
if (type === 'domainCard' && parent?.system.domains?.length) {
|
if (type === 'domainCard' && parent?.system.domains?.length) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue