From 241395c7eb6a46b8648ee25ab327981e8dc00ad9 Mon Sep 17 00:00:00 2001 From: Christopher Renaud Oelerich Date: Thu, 24 Oct 2024 15:46:10 -0400 Subject: [PATCH] Remove syncing of item damage on the frontend --- src/sync.mjs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/sync.mjs b/src/sync.mjs index 5aa5a33..d7d4196 100644 --- a/src/sync.mjs +++ b/src/sync.mjs @@ -78,20 +78,10 @@ function prune_roll_data({ function gen_item_deets(item, actor_lvl) { const attack = item_roll(item) - let damage_type_pair = item.system.damage.parts.map(part => { - let damage = new Roll(part[0], item.getRollData()).formula - if (item?.system?.scaling?.mode === 'cantrip') { - if (actor_lvl >= 17) damage = '4' + damage.slice(1) - else if (actor_lvl >= 11) damage = '3' + damage.slice(1) - else if (actor_lvl >= 5) damage = '2' + damage.slice(1) - } - return [damage, part[1]] - }) const out = { name: item.name, id: item.id, - damage: damage_type_pair, attack: attack.formula, type: item.type, img: fix_relative_url(item.img),