RC-112 | Armour & Shield | Add Equipped boolean
This commit is contained in:
parent
1e416ff9bf
commit
745660cbc3
2 changed files with 12 additions and 1 deletions
|
|
@ -65,6 +65,16 @@ export class ProtectorData extends foundry.abstract.TypeDataModel {
|
||||||
min: 0,
|
min: 0,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (this.parent.isEmbedded) {
|
||||||
|
fields.push({
|
||||||
|
id: `equipped`,
|
||||||
|
type: `boolean`,
|
||||||
|
label: `RipCrypt.common.equipped`,
|
||||||
|
value: this.equipped,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
return fields;
|
return fields;
|
||||||
};
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,8 @@ export class WeaponData extends foundry.abstract.TypeDataModel {
|
||||||
fields.push({
|
fields.push({
|
||||||
id: `equipped`,
|
id: `equipped`,
|
||||||
type: `boolean`,
|
type: `boolean`,
|
||||||
label: `Equipped`,
|
label: `RipCrypt.common.equipped`,
|
||||||
|
value: this.equipped,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue