Skip to content

Commit

Permalink
fix(config): Fix config not being applied to new characters
Browse files Browse the repository at this point in the history
  • Loading branch information
symposion committed Apr 12, 2017
1 parent 61a75ef commit a9ba283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/new-character-configurer.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = class NewCharacterConfigurer extends ShapedModule {
};

switch (attr.get('current')) {
case 'initialize':
case 'new_character':
pending.timeoutId = _.delay(resolvePending, 2000);
return null;
case 'drag_from_srd':
Expand Down
1 change: 1 addition & 0 deletions lib/shaped-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ const migrator = new Migrator()
const baseConfig = config.config.newCharSettings.houserules;
baseConfig.hitPointsRecoveredOnALongRest = baseConfig.hitPointsRecoveredOnALongRest || '0';
baseConfig.hitDiceRecoveredOnALongRest = baseConfig.hitDiceRecoveredOnALongRest || '0';
return config;
}, 'Fixing hit points/hit dice settings');

module.exports = class ShapedConfig extends ShapedModule {
Expand Down

0 comments on commit a9ba283

Please sign in to comment.