diff --git a/changelog.md b/changelog.md
index b393ba7..6571039 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,8 @@
# changelog
+### Wednesday, 25/05/2016
+- The class table generators have the proper ability score improvement progression.
+
### Tuesday, 24/05/2016 - v2.0.4
- Fixed extra wide monster stat blocks sometimes only being one column
- The class table generators now follow the proper progression from the PHB (thakns u/IrishBandit)
diff --git a/client/homebrew/editor/snippets/classtable.gen.js b/client/homebrew/editor/snippets/classtable.gen.js
index 4b78770..b1d6021 100644
--- a/client/homebrew/editor/snippets/classtable.gen.js
+++ b/client/homebrew/editor/snippets/classtable.gen.js
@@ -38,7 +38,17 @@ var classnames = ['Archivist', 'Fancyman', 'Linguist', 'Fletcher',
var levels = ["1st", "2nd", "3rd", "4th", "5th", "6th", "7th", "8th", "9th", "10th", "11th", "12th", "13th", "14th", "15th", "16th", "17th", "18th", "19th", "20th"]
-var profBonus = [2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6]
+var profBonus = [2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6];
+
+var getFeature = (level)=>{
+ var res = []
+ if(_.includes([4,6,8,12,14,16,19], level+1)){
+ res = ["Ability Score Improvement"]
+ }
+ res = _.union(res, _.sampleSize(features, _.sample([0,1,1,1,1,1])));
+ if(!res.length) return "─";
+ return res.join(', ');
+}
module.exports = {
full : function(classname){
@@ -68,7 +78,7 @@ module.exports = {
var res = [
levelName,
"+" + profBonus[level],
- _.sampleSize(features, _.sample([0,1,1])).join(', ') || "Ability Score Improvement",
+ getFeature(level),
cantrips,
spells,
drawSlots(slots)
@@ -94,7 +104,7 @@ module.exports = {
var res = [
levelName,
"+" + profBonus[level],
- _.sampleSize(features, _.sample([0,1,1])).join(', ') || "Ability Score Improvement",
+ getFeature(level),
"+" + featureScore
].join(' | ');
diff --git a/client/homebrew/navbar/navbar.jsx b/client/homebrew/navbar/navbar.jsx
index 20c3c65..e09bb78 100644
--- a/client/homebrew/navbar/navbar.jsx
+++ b/client/homebrew/navbar/navbar.jsx
@@ -11,7 +11,7 @@ var Navbar = React.createClass({
The Homebrewery
- v2.0.4
+ v2.0.5
{this.props.children}
diff --git a/package.json b/package.json
index 0d5bf2a..60c30d9 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "naturalcrit",
"description": "D&D Tools for the discerning DM",
- "version": "2.0.4",
+ "version": "2.0.5",
"scripts": {
"postinstall": "gulp prod",
"start": "node server.js"