From 5cb76539b8c4b2aa56dbc4bdbdb54eaead286f15 Mon Sep 17 00:00:00 2001 From: jalensailin Date: Sat, 8 Jun 2024 02:20:07 -0400 Subject: [PATCH] fix `data` to `system` in several locations --- module/actor/actor-sheet.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index 0597030..62727b5 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -312,7 +312,7 @@ export default class DeltaGreenActorSheet extends ActorSheet { const updatedData = foundry.utils.duplicate(this.actor.system); updatedData.sanity.currentBreakingPoint = currentBreakingPoint; - this.actor.update({ data: updatedData }); + this.actor.update({ system: updatedData }); }); html.find(".typed-skill-add").click((event) => { @@ -732,7 +732,7 @@ export default class DeltaGreenActorSheet extends ActorSheet { updatedData.typedSkills = typedSkills; - this.actor.update({ data: updatedData }); + this.actor.update({ system: updatedData }); } _updateTypedSkill(targetSkill, newSkillLabel, newSkillGroup) { @@ -747,7 +747,7 @@ export default class DeltaGreenActorSheet extends ActorSheet { updatedData.typedSkills[targetSkill].label = newSkillLabel; updatedData.typedSkills[targetSkill].group = newSkillGroup; - this.actor.update({ data: updatedData }); + this.actor.update({ system: updatedData }); } } @@ -1033,7 +1033,7 @@ export default class DeltaGreenActorSheet extends ActorSheet { updatedData.sanity.currentBreakingPoint = currentBreakingPoint; - this.actor.update({ data: updatedData }); + this.actor.update({ system: updatedData }); } _onEquippedStatusChange(event) { @@ -1046,7 +1046,7 @@ export default class DeltaGreenActorSheet extends ActorSheet { const item = this.actor.items.get(dataset.id); let isEquipped = item.system.equipped; isEquipped = !isEquipped; - item.update({ data: { equipped: isEquipped } }); + item.update({ system: { equipped: isEquipped } }); } catch (ex) { console.log(ex); }