Remove the sheet inputs from the data model
This commit is contained in:
parent
bfa26edd5b
commit
2215ce503b
1 changed files with 0 additions and 86 deletions
|
|
@ -110,90 +110,4 @@ export class ArmourData extends CommonItemData {
|
||||||
return [...this.location].join(`, `);
|
return [...this.location].join(`, `);
|
||||||
};
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
// #region Sheet Data
|
|
||||||
getFormFields(_ctx) {
|
|
||||||
const fields = [
|
|
||||||
{
|
|
||||||
id: `quantity`,
|
|
||||||
type: `integer`,
|
|
||||||
label: `RipCrypt.common.quantity`,
|
|
||||||
path: `system.quantity`,
|
|
||||||
value: this.quantity,
|
|
||||||
min: 0,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: `access`,
|
|
||||||
type: `dropdown`,
|
|
||||||
label: `RipCrypt.common.access`,
|
|
||||||
path: `system.access`,
|
|
||||||
value: this.access,
|
|
||||||
limited: false,
|
|
||||||
options: [
|
|
||||||
{
|
|
||||||
label: `RipCrypt.common.empty`,
|
|
||||||
value: ``,
|
|
||||||
},
|
|
||||||
...gameTerms.Access.map(opt => ({
|
|
||||||
label: `RipCrypt.common.accessLevels.${opt}`,
|
|
||||||
value: opt,
|
|
||||||
})),
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: `cost`,
|
|
||||||
type: `cost`,
|
|
||||||
label: `RipCrypt.common.cost`,
|
|
||||||
gold: this.cost.gold,
|
|
||||||
silver: this.cost.silver,
|
|
||||||
copper: this.cost.copper,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: `weight`,
|
|
||||||
type: `dropdown`,
|
|
||||||
label: `RipCrypt.common.weightRating`,
|
|
||||||
path: `system.weight`,
|
|
||||||
value: this.weight,
|
|
||||||
options: [
|
|
||||||
{
|
|
||||||
label: `RipCrypt.common.empty`,
|
|
||||||
value: null,
|
|
||||||
},
|
|
||||||
...Object.values(gameTerms.WeightRatings).map(opt => ({
|
|
||||||
label: `RipCrypt.common.weightRatings.${opt}`,
|
|
||||||
value: opt,
|
|
||||||
})),
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: `location`,
|
|
||||||
type: `string-set`,
|
|
||||||
label: `RipCrypt.common.location`,
|
|
||||||
placeholder: `RipCrypt.Apps.location-placeholder`,
|
|
||||||
path: `system.location`,
|
|
||||||
value: this.locationString,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: `protection`,
|
|
||||||
type: `integer`,
|
|
||||||
label: `RipCrypt.common.protection`,
|
|
||||||
value: this.protection,
|
|
||||||
path: `system.protection`,
|
|
||||||
min: 0,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
if (this.parent.isEmbedded) {
|
|
||||||
fields.push({
|
|
||||||
id: `equipped`,
|
|
||||||
type: `boolean`,
|
|
||||||
label: `RipCrypt.common.equipped`,
|
|
||||||
value: this.equipped,
|
|
||||||
path: `system.equipped`,
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
return fields;
|
|
||||||
};
|
|
||||||
// #endregion
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue