Skip to content

Commit

Permalink
Support Initiative
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkLightTuna committed Mar 26, 2024
1 parent 97f5b36 commit c2803b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sync.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function prune_roll_data(

pc.details = (({originalClass, ...o}) => o)(pc.details)
pc.details.xp = (({pct, ...o}) => o)(pc.details.xp)
pc.attributes = (({init, death, encumbrance, ...o}) => o)(pc.attributes)
pc.attributes = (({death, encumbrance, ...o}) => o)(pc.attributes)
pc.attributes.ac = (({equippedArmor, equippedShield, ...o}) => o)(pc.attributes.ac)
pc.attributes.hp = (({value, temp, tempmax, bonuses, ...o}) => o)(pc.attributes.hp)

Expand Down Expand Up @@ -152,7 +152,6 @@ export function enrich_actor(actor) {

clone_pc.attributes.spellcaster = Object.values(actor.system?.spells || {}).some(s => s?.max > 0)


return {
...prune_roll_data(clone_pc),
name: actor.name,
Expand Down

0 comments on commit c2803b4

Please sign in to comment.