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),