Add cost data entry into the rest of the item types that need it
This commit is contained in:
parent
86ddac1aa4
commit
714da335e8
4 changed files with 32 additions and 8 deletions
|
|
@ -26,14 +26,6 @@ export class AmmoData extends CommonItemData {
|
||||||
value: this.quantity,
|
value: this.quantity,
|
||||||
min: 0,
|
min: 0,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: `cost`,
|
|
||||||
type: `cost`,
|
|
||||||
label: `RipCrypt.common.cost`,
|
|
||||||
gold: this.cost.gold,
|
|
||||||
silver: this.cost.silver,
|
|
||||||
copper: this.cost.copper,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: `access`,
|
id: `access`,
|
||||||
type: `dropdown`,
|
type: `dropdown`,
|
||||||
|
|
@ -52,6 +44,14 @@ export class AmmoData extends CommonItemData {
|
||||||
})),
|
})),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: `cost`,
|
||||||
|
type: `cost`,
|
||||||
|
label: `RipCrypt.common.cost`,
|
||||||
|
gold: this.cost.gold,
|
||||||
|
silver: this.cost.silver,
|
||||||
|
copper: this.cost.copper,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
return fields;
|
return fields;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -140,6 +140,14 @@ export class ArmourData extends CommonItemData {
|
||||||
})),
|
})),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: `cost`,
|
||||||
|
type: `cost`,
|
||||||
|
label: `RipCrypt.common.cost`,
|
||||||
|
gold: this.cost.gold,
|
||||||
|
silver: this.cost.silver,
|
||||||
|
copper: this.cost.copper,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: `weight`,
|
id: `weight`,
|
||||||
type: `dropdown`,
|
type: `dropdown`,
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,14 @@ export class GoodData extends CommonItemData {
|
||||||
})),
|
})),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: `cost`,
|
||||||
|
type: `cost`,
|
||||||
|
label: `RipCrypt.common.cost`,
|
||||||
|
gold: this.cost.gold,
|
||||||
|
silver: this.cost.silver,
|
||||||
|
copper: this.cost.copper,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: `description`,
|
id: `description`,
|
||||||
type: `prosemirror`,
|
type: `prosemirror`,
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,14 @@ export class WeaponData extends CommonItemData {
|
||||||
})),
|
})),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: `cost`,
|
||||||
|
type: `cost`,
|
||||||
|
label: `RipCrypt.common.cost`,
|
||||||
|
gold: this.cost.gold,
|
||||||
|
silver: this.cost.silver,
|
||||||
|
copper: this.cost.copper,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: `weight`,
|
id: `weight`,
|
||||||
type: `dropdown`,
|
type: `dropdown`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue