Add cost data entry into the rest of the item types that need it

This commit is contained in:
Oliver-Akins 2025-04-11 19:13:16 -06:00
parent 86ddac1aa4
commit 714da335e8
4 changed files with 32 additions and 8 deletions

View file

@ -26,14 +26,6 @@ export class AmmoData extends CommonItemData {
value: this.quantity,
min: 0,
},
{
id: `cost`,
type: `cost`,
label: `RipCrypt.common.cost`,
gold: this.cost.gold,
silver: this.cost.silver,
copper: this.cost.copper,
},
{
id: `access`,
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;
};

View file

@ -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`,
type: `dropdown`,

View file

@ -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`,
type: `prosemirror`,

View file

@ -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`,
type: `dropdown`,