0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Shorten Features column to match shorter names

This commit is contained in:
Trevor Buckner
2021-08-27 12:30:57 -04:00
parent 9d5130154b
commit e5cfa98bbd

View File

@@ -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`;
}
};