From 94961dbc50f51cb6bbcf9420797696958c0dc8e4 Mon Sep 17 00:00:00 2001 From: Christopher Renaud Oelerich Date: Sat, 9 Dec 2023 17:16:46 -0600 Subject: [PATCH] Update Actor Model for 2.4.0 --- src/sync.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sync.mjs b/src/sync.mjs index ad9bb91..ac37b24 100644 --- a/src/sync.mjs +++ b/src/sync.mjs @@ -124,16 +124,23 @@ export function enrich_actor(actor) { (k, v) => v instanceof Set ? [...v] : v) ) clone_pc.details.dead = Boolean(actor.effects.find(e => !e.disabled && e.name === 'Dead')) + + console.log(actor.system.details.background) clone_pc.details.background = typeof actor.system.details.background === "string" ? actor.system.details.background : actor.system.details.background ? actor.system.details.background.name : '' + + console.log(clone_pc.details.background) + + console.log(actor.system.details.race) clone_pc.details.race = typeof actor.system.details.race === "string" ? actor.system.details.race : actor.system.details.race ? actor.system.details.race.name : '' + console.log(clone_pc.details.race) return { ...prune_roll_data(clone_pc),