From e5cfa98bbde35cb3fb0c574785dcf38e2a9d9a44 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Fri, 27 Aug 2021 12:30:57 -0400 Subject: [PATCH] Shorten Features column to match shorter names --- .../editor/snippetbar/snippets/classtable.gen.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/client/homebrew/editor/snippetbar/snippets/classtable.gen.js b/client/homebrew/editor/snippetbar/snippets/classtable.gen.js index 789d15b68..40c133b7a 100644 --- a/client/homebrew/editor/snippetbar/snippets/classtable.gen.js +++ b/client/homebrew/editor/snippetbar/snippets/classtable.gen.js @@ -70,9 +70,9 @@ module.exports = { let spells = 1; let slots = 2; return `{{${classes}\n##### The ${classname}\n` + - `| Level | Proficiency | Features | Cantrips | Spells | --- Spell Slots Per Spell Level --- |||||||||\n`+ - `| ^| Bonus ^| ^| Known ^| Known ^| 1st | 2nd | 3rd | 4th | 5th | 6th | 7th | 8th | 9th |\n`+ - `|:-----:|:-----------:|:--------------------------------------------------------|:--------:|:------:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n${ + `| Level | Proficiency | Features | Cantrips | Spells | --- Spell Slots Per Spell Level --- |||||||||\n`+ + `| ^| Bonus ^| ^| Known ^| Known ^| 1st | 2nd | 3rd | 4th | 5th | 6th | 7th | 8th | 9th |\n`+ + `|:-----:|:-----------:|:-----------------------------------------------|:--------:|:------:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n${ _.map(levels, function(levelName, level){ const res = [ _.pad(levelName, 5), @@ -96,8 +96,8 @@ module.exports = { let featureScore = 1; return `{{${classes}\n##### The ${classname}\n` + - `| Level | Proficiency Bonus | Features | ${_.pad(_.sample(features), 26)} |\n` + - `|:-----:|:-----------------:|:--------------------------------------------------------|:--------------------------:|\n${ + `| Level | Proficiency Bonus | Features | ${_.pad(_.sample(features), 26)} |\n` + + `|:-----:|:-----------------:|:-----------------------------------------------|:--------------------------:|\n${ _.map(levels, function(levelName, level){ const res = [ _.pad(levelName, 5), @@ -137,5 +137,4 @@ module.exports = { return `| ${res} |`; }).join('\n')}\n}}\n\n`; } - };