Skip to content

Commit

Permalink
remove monster AC from combat tracker messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkLightTuna committed Apr 15, 2024
1 parent 83ab51b commit bcd2157
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/combat.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bcd2157

Please sign in to comment.