mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 22:52:39 +00:00
Updating legacy class feature
Separated into two commits - one for new, one for legacy
This commit is contained in:
@@ -8,6 +8,7 @@ module.exports = function(classname){
|
|||||||
classname = classname.toLowerCase();
|
classname = classname.toLowerCase();
|
||||||
|
|
||||||
const hitDie = _.sample([4, 6, 8, 10, 12]);
|
const hitDie = _.sample([4, 6, 8, 10, 12]);
|
||||||
|
const spellSkill = _.sample(['Wisdom', 'Charisma', 'Intelligence']);
|
||||||
|
|
||||||
const abilityList = ['Strength', 'Dexerity', 'Constitution', 'Wisdom', 'Charisma', 'Intelligence'];
|
const abilityList = ['Strength', 'Dexerity', 'Constitution', 'Wisdom', 'Charisma', 'Intelligence'];
|
||||||
const skillList = ['Acrobatics ', 'Animal Handling', 'Arcana', 'Athletics', 'Deception', 'History', 'Insight', 'Intimidation', 'Investigation', 'Medicine', 'Nature', 'Perception', 'Performance', 'Persuasion', 'Religion', 'Sleight of Hand', 'Stealth', 'Survival'];
|
const skillList = ['Acrobatics ', 'Animal Handling', 'Arcana', 'Athletics', 'Deception', 'History', 'Insight', 'Intimidation', 'Investigation', 'Medicine', 'Nature', 'Perception', 'Performance', 'Persuasion', 'Religion', 'Sleight of Hand', 'Stealth', 'Survival'];
|
||||||
@@ -32,6 +33,11 @@ module.exports = function(classname){
|
|||||||
`- **Saving Throws:** ${_.sampleSize(abilityList, 2).join(', ')}`,
|
`- **Saving Throws:** ${_.sampleSize(abilityList, 2).join(', ')}`,
|
||||||
`- **Skills:** Choose two from ${_.sampleSize(skillList, _.random(4, 6)).join(', ')}`,
|
`- **Skills:** Choose two from ${_.sampleSize(skillList, _.random(4, 6)).join(', ')}`,
|
||||||
'',
|
'',
|
||||||
|
'#### Spellcasting Ability',
|
||||||
|
`**Spell save DC** = ${_.sample([6, 8, 10])} + your proficiency bonus + your ${spellSkill} modifier`,
|
||||||
|
'',
|
||||||
|
`**Spell attack modifier** = your proficiency bonus + your ${spellSkill} modifier `,
|
||||||
|
'',
|
||||||
'#### Equipment',
|
'#### Equipment',
|
||||||
'You start with the following equipment, in addition to the equipment granted by your background:',
|
'You start with the following equipment, in addition to the equipment granted by your background:',
|
||||||
'- *(a)* a martial weapon and a shield or *(b)* two martial weapons',
|
'- *(a)* a martial weapon and a shield or *(b)* two martial weapons',
|
||||||
|
|||||||
Reference in New Issue
Block a user