mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-01 08:42:45 +00:00
Shorten Features column to match shorter names
This commit is contained in:
@@ -70,9 +70,9 @@ module.exports = {
|
|||||||
let spells = 1;
|
let spells = 1;
|
||||||
let slots = 2;
|
let slots = 2;
|
||||||
return `{{${classes}\n##### The ${classname}\n` +
|
return `{{${classes}\n##### The ${classname}\n` +
|
||||||
`| Level | Proficiency | Features | Cantrips | Spells | --- Spell Slots Per Spell Level --- |||||||||\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`+
|
`| ^| Bonus ^| ^| Known ^| Known ^| 1st | 2nd | 3rd | 4th | 5th | 6th | 7th | 8th | 9th |\n`+
|
||||||
`|:-----:|:-----------:|:--------------------------------------------------------|:--------:|:------:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n${
|
`|:-----:|:-----------:|:-----------------------------------------------|:--------:|:------:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n${
|
||||||
_.map(levels, function(levelName, level){
|
_.map(levels, function(levelName, level){
|
||||||
const res = [
|
const res = [
|
||||||
_.pad(levelName, 5),
|
_.pad(levelName, 5),
|
||||||
@@ -96,8 +96,8 @@ module.exports = {
|
|||||||
|
|
||||||
let featureScore = 1;
|
let featureScore = 1;
|
||||||
return `{{${classes}\n##### The ${classname}\n` +
|
return `{{${classes}\n##### The ${classname}\n` +
|
||||||
`| Level | Proficiency Bonus | Features | ${_.pad(_.sample(features), 26)} |\n` +
|
`| Level | Proficiency Bonus | Features | ${_.pad(_.sample(features), 26)} |\n` +
|
||||||
`|:-----:|:-----------------:|:--------------------------------------------------------|:--------------------------:|\n${
|
`|:-----:|:-----------------:|:-----------------------------------------------|:--------------------------:|\n${
|
||||||
_.map(levels, function(levelName, level){
|
_.map(levels, function(levelName, level){
|
||||||
const res = [
|
const res = [
|
||||||
_.pad(levelName, 5),
|
_.pad(levelName, 5),
|
||||||
@@ -137,5 +137,4 @@ module.exports = {
|
|||||||
return `| ${res} |`;
|
return `| ${res} |`;
|
||||||
}).join('\n')}\n}}\n\n`;
|
}).join('\n')}\n}}\n\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user