From bcd21579a8c6e72bf314a4cc1cc227a4cc315fb2 Mon Sep 17 00:00:00 2001 From: Christopher Renaud Oelerich Date: Sun, 14 Apr 2024 21:11:07 -0500 Subject: [PATCH] remove monster AC from combat tracker messages --- src/combat.mjs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/combat.mjs b/src/combat.mjs index d654ee9..3dd99d4 100644 --- a/src/combat.mjs +++ b/src/combat.mjs @@ -130,12 +130,8 @@ function parse_combat_round(combat) { return acc + line } else { const hp = get_health(rawHp, healthSetting, c.actor.type) - const ac = `AC ${c.actor.system.attributes.ac.value}` - - let line = `${init}: ${c.name} <${hp}> (${ac})\n` - line += get_effects_in_markdown(c.actor, c.token) - - return acc + line + const ac = c.actor.type === 'character' ? ` (AC ${c.actor.system.attributes.ac.value})` : '' + return `${acc}${init}: ${c.name} <${hp}>${ac}\n${get_effects_in_markdown(c.actor, c.token)}` } }, '') output += "```\n"