- Seed now resets the database and seeds the Aldenfell campaign from the campaign book: admin DM user, default weapons, locations, bestiary, pre-built encounters, and DM/shared notes - Default weapon/spell/monster library, character profile fields, locations and dice mode (new migration) - Party overview page, pagination, info tips, build preview calc - Remove stale demo-login hint; notes preserve line breaks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
77 lines
4.0 KiB
JavaScript
77 lines
4.0 KiB
JavaScript
// Generated from /seed-data/classes.json — keep in sync by hand if that file changes.
|
|
// See docs/GAME_RULES_REFERENCE.md "Class Quick Facts".
|
|
// skillChoices is the SRD "choose N from this list" skill-proficiency rule per
|
|
// class, used by buildFlow.js's autoSelectSkills() to auto-generate skill
|
|
// proficiencies during the character builder instead of a manual checkbox pick.
|
|
|
|
const ALL_SKILLS = [
|
|
'ACROBATICS', 'ANIMAL_HANDLING', 'ARCANA', 'ATHLETICS', 'DECEPTION', 'HISTORY',
|
|
'INSIGHT', 'INTIMIDATION', 'INVESTIGATION', 'MEDICINE', 'NATURE', 'PERCEPTION',
|
|
'PERFORMANCE', 'PERSUASION', 'RELIGION', 'SLEIGHT_OF_HAND', 'STEALTH', 'SURVIVAL',
|
|
];
|
|
|
|
const CLASSES = {
|
|
FIGHTER: {
|
|
key: 'FIGHTER', name: 'Fighter', hitDie: 10, primaryAbility: 'Str/Dex',
|
|
saveProficiencies: ['STR', 'CON'], spellcastingAbility: null,
|
|
skillChoices: { count: 2, options: ['ACROBATICS', 'ANIMAL_HANDLING', 'ATHLETICS', 'HISTORY', 'INSIGHT', 'INTIMIDATION', 'PERCEPTION', 'SURVIVAL'] },
|
|
},
|
|
BARBARIAN: {
|
|
key: 'BARBARIAN', name: 'Barbarian', hitDie: 12, primaryAbility: 'Str',
|
|
saveProficiencies: ['STR', 'CON'], spellcastingAbility: null,
|
|
skillChoices: { count: 2, options: ['ANIMAL_HANDLING', 'ATHLETICS', 'INTIMIDATION', 'NATURE', 'PERCEPTION', 'SURVIVAL'] },
|
|
},
|
|
ROGUE: {
|
|
key: 'ROGUE', name: 'Rogue', hitDie: 8, primaryAbility: 'Dex',
|
|
saveProficiencies: ['DEX', 'INT'], spellcastingAbility: null,
|
|
skillChoices: { count: 4, options: ['ACROBATICS', 'ATHLETICS', 'DECEPTION', 'INSIGHT', 'INTIMIDATION', 'INVESTIGATION', 'PERCEPTION', 'PERFORMANCE', 'PERSUASION', 'SLEIGHT_OF_HAND', 'STEALTH'] },
|
|
},
|
|
RANGER: {
|
|
key: 'RANGER', name: 'Ranger', hitDie: 10, primaryAbility: 'Dex/Wis',
|
|
saveProficiencies: ['STR', 'DEX'], spellcastingAbility: 'WIS',
|
|
skillChoices: { count: 3, options: ['ANIMAL_HANDLING', 'ATHLETICS', 'INSIGHT', 'INVESTIGATION', 'NATURE', 'PERCEPTION', 'STEALTH', 'SURVIVAL'] },
|
|
},
|
|
WIZARD: {
|
|
key: 'WIZARD', name: 'Wizard', hitDie: 6, primaryAbility: 'Int',
|
|
saveProficiencies: ['INT', 'WIS'], spellcastingAbility: 'INT',
|
|
skillChoices: { count: 2, options: ['ARCANA', 'HISTORY', 'INSIGHT', 'INVESTIGATION', 'MEDICINE', 'RELIGION'] },
|
|
},
|
|
SORCERER: {
|
|
key: 'SORCERER', name: 'Sorcerer', hitDie: 6, primaryAbility: 'Cha',
|
|
saveProficiencies: ['CON', 'CHA'], spellcastingAbility: 'CHA',
|
|
skillChoices: { count: 2, options: ['ARCANA', 'DECEPTION', 'INSIGHT', 'INTIMIDATION', 'PERSUASION', 'RELIGION'] },
|
|
},
|
|
CLERIC: {
|
|
key: 'CLERIC', name: 'Cleric', hitDie: 8, primaryAbility: 'Wis',
|
|
saveProficiencies: ['WIS', 'CHA'], spellcastingAbility: 'WIS',
|
|
skillChoices: { count: 2, options: ['HISTORY', 'INSIGHT', 'MEDICINE', 'PERSUASION', 'RELIGION'] },
|
|
},
|
|
PALADIN: {
|
|
key: 'PALADIN', name: 'Paladin', hitDie: 10, primaryAbility: 'Str/Cha',
|
|
saveProficiencies: ['WIS', 'CHA'], spellcastingAbility: 'CHA',
|
|
skillChoices: { count: 2, options: ['ATHLETICS', 'INSIGHT', 'INTIMIDATION', 'MEDICINE', 'PERSUASION', 'RELIGION'] },
|
|
},
|
|
BARD: {
|
|
key: 'BARD', name: 'Bard', hitDie: 8, primaryAbility: 'Cha',
|
|
saveProficiencies: ['DEX', 'CHA'], spellcastingAbility: 'CHA',
|
|
skillChoices: { count: 3, options: ALL_SKILLS },
|
|
},
|
|
WARLOCK: {
|
|
key: 'WARLOCK', name: 'Warlock', hitDie: 8, primaryAbility: 'Cha',
|
|
saveProficiencies: ['WIS', 'CHA'], spellcastingAbility: 'CHA',
|
|
skillChoices: { count: 2, options: ['ARCANA', 'DECEPTION', 'HISTORY', 'INTIMIDATION', 'INVESTIGATION', 'NATURE', 'RELIGION'] },
|
|
},
|
|
DRUID: {
|
|
key: 'DRUID', name: 'Druid', hitDie: 8, primaryAbility: 'Wis',
|
|
saveProficiencies: ['INT', 'WIS'], spellcastingAbility: 'WIS',
|
|
skillChoices: { count: 2, options: ['ARCANA', 'ANIMAL_HANDLING', 'INSIGHT', 'MEDICINE', 'NATURE', 'PERCEPTION', 'RELIGION', 'SURVIVAL'] },
|
|
},
|
|
MONK: {
|
|
key: 'MONK', name: 'Monk', hitDie: 8, primaryAbility: 'Dex/Wis',
|
|
saveProficiencies: ['STR', 'DEX'], spellcastingAbility: null,
|
|
skillChoices: { count: 2, options: ['ACROBATICS', 'ATHLETICS', 'HISTORY', 'INSIGHT', 'RELIGION', 'STEALTH'] },
|
|
},
|
|
};
|
|
|
|
module.exports = { CLASSES };
|