From 714da335e888dd945b6a3e8c02ce3f80def9cf20 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 11 Apr 2025 19:13:16 -0600 Subject: [PATCH] Add cost data entry into the rest of the item types that need it --- module/data/Item/Ammo.mjs | 16 ++++++++-------- module/data/Item/Armour.mjs | 8 ++++++++ module/data/Item/Good.mjs | 8 ++++++++ module/data/Item/Weapon.mjs | 8 ++++++++ 4 files changed, 32 insertions(+), 8 deletions(-) diff --git a/module/data/Item/Ammo.mjs b/module/data/Item/Ammo.mjs index 566afc7..0493eb1 100644 --- a/module/data/Item/Ammo.mjs +++ b/module/data/Item/Ammo.mjs @@ -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; }; diff --git a/module/data/Item/Armour.mjs b/module/data/Item/Armour.mjs index 5d56510..2669b4c 100644 --- a/module/data/Item/Armour.mjs +++ b/module/data/Item/Armour.mjs @@ -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`, diff --git a/module/data/Item/Good.mjs b/module/data/Item/Good.mjs index 0194609..9af246b 100644 --- a/module/data/Item/Good.mjs +++ b/module/data/Item/Good.mjs @@ -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`, diff --git a/module/data/Item/Weapon.mjs b/module/data/Item/Weapon.mjs index 5242f25..a4b77ff 100644 --- a/module/data/Item/Weapon.mjs +++ b/module/data/Item/Weapon.mjs @@ -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`,