FEAT: new FormulaField class

FEAT: add getRollData on BaseDataItem Class
FEAT: weapon
FIX: remove inventoryWeapon field on Weapon Data Model
This commit is contained in:
Joaquin Pereyra 2025-05-31 12:46:26 -03:00
parent ec7f32cdc7
commit 527a0cd419
6 changed files with 96 additions and 18 deletions

View file

@ -1066,10 +1066,12 @@ export default class PCSheet extends DaggerheartSheet(ActorSheetV2) {
await itemObject.update({ 'system.active': true });
break;
case 'inventory-weapon-section':
/* FIXME inventoryWeapon is no longer a field
const existingInventoryWeapon = this.document.items.find(x => x.system.inventoryWeapon);
await existingInventoryWeapon?.update({ 'system.inventoryWeapon': false });
await itemObject.update({ 'system.inventoryWeapon': true });
break;
*/
case 'inventory-armor-section':
const existingInventoryArmor = this.document.items.find(x => x.system.inventoryArmor);
await existingInventoryArmor?.update({ 'system.inventoryArmor': false });