0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 03:52:40 +00:00

Updated the class tbale snippets

This commit is contained in:
Scott Tolksdorf
2016-06-05 12:55:29 -04:00
parent f058814040
commit 5969e45087
2 changed files with 13 additions and 6 deletions

View File

@@ -70,8 +70,7 @@ module.exports = {
var cantrips = 3;
var spells = 1;
var slots = 2;
return "##### The " + classname + "\n" +
"___\n" +
return "<div class='classTable wide'>\n##### The " + classname + "\n" +
"| Level | Proficiency Bonus | Features | Cantrips Known | Spells Known | 1st | 2nd | 3rd | 4th | 5th | 6th | 7th | 8th | 9th |\n"+
"|:---:|:---:|:---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n" +
_.map(levels, function(levelName, level){
@@ -89,15 +88,14 @@ module.exports = {
slots += _.random(0,2);
return "| " + res + " |";
}).join('\n') +'\n\n';
}).join('\n') +'\n</div>\n\n';
},
half : function(classname){
classname = classname || _.sample(classnames)
var featureScore = 1
return "##### The " + classname + "\n" +
"___\n" + "___\n" +
return "<div class='classTable'>\n##### The " + classname + "\n" +
"| Level | Proficiency Bonus | Features | " + _.sample(features) + "|\n" +
"|:---:|:---:|:---|:---:|\n" +
_.map(levels, function(levelName, level){
@@ -111,6 +109,6 @@ module.exports = {
featureScore += _.random(0,1);
return "| " + res + " |";
}).join('\n') +'\n\n';
}).join('\n') +'\n</div>\n\n';
}
};