V1.21.0: a DM's toolkit: the battle at a glance, subclasses, character state, rolls, XP
Seven steps in one commit, 1.15.0 to 1.21.0. They change the same files and were not saved apart, so they go in together. - The battle at a glance (1.15). A strip across the top of an encounter lists everyone in turn order and stays in view; a click goes to that card. On a wide screen the stat block of whoever is on turn stays beside the cards, and Pin keeps anyone else's there. Saving throws, every skill and passive Perception, Investigation and Insight are on encounter cards and in the character panel, which "Sheet" on a card and a button on the party overview open. For the DM, N is Next Turn and S opens the sheet of whoever is on turn. The party overview shows passive scores and spell save DC. - Subclasses (1.16). Three per class, picked in the level-up checklist at level 2 (cleric, druid, wizard) or 3, shown beside the class everywhere, and changed by the DM from the sheet: the old one's lines come out of Special Abilities and the new one's go in. Characters already at that level keep the path they were on. - Character state (1.17). Inspiration, exhaustion and conditions on the sheet and in the panel, and counters for what a class does a set number of times (Rage, Ki, Channel Divinity...), which the player spends and a rest gives back. A long rest takes a level of exhaustion off. A character's conditions are their own now: they stay from one encounter to the next. - Faster battles (1.18). Up to 20 of a monster added at once, numbered. One button rolls initiative for the monsters and NPCs. A condition can be given a number of rounds and then comes off by itself. Hovering over a condition shows its rule, and damaging someone who is Concentrating shows the save to call for. - Rolls from the sheet (1.19). A number with a dotted underline rolls when clicked, with its bonus: skills, saves, ability checks, attacks, damage, spell dice, and a monster's attack, damage and abilities. The dice roller has advantage and disadvantage. "Call for a roll" rolls one check or save for the whole party. Rolls stay in the browser. - XP and difficulty (1.20). An encounter shows the DM how hard it is, Trivial to Deadly, from the monsters' challenge ratings against the characters in it, and what it is worth in XP; one button shares that out, once. The sheet and the party overview show XP and when a level is due. Levelling up stays the DM's decision. - Subclasses are optional per campaign (1.21). With "Characters choose a subclass" unticked in the campaign's Settings nobody is asked, each class follows its first subclass, and none is named. - Conditions, exhaustion, counters and subclass features are reminders for the table: none of them changes a number on the sheet. - The docs cover all of it, with generated tables of what each subclass adds. - New migrations: a character's subclass; inspiration, exhaustion, conditions and spent counters on a character; the rounds left on a combatant's conditions; the XP awarded for an encounter; the campaign's subclass setting. - All packages at version 1.21.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// What each class gains at each level after the first: the "Levelling-Up
|
||||
// Checklist" tables of the Hollowcrown book (Rules Cheat Sheet), levels 2 to
|
||||
// 10. The site has no subclasses, so each class follows one simple path (the
|
||||
// Champion fighter, the Life cleric...). Level 1 features are in
|
||||
// characterOptions.js and are written by the builder.
|
||||
// 10. These are the features every member of the class gets; what a subclass
|
||||
// adds is in subclasses.js. Level 1 features are in characterOptions.js and
|
||||
// are written by the builder.
|
||||
//
|
||||
// Each entry becomes a line of the character's special abilities, "Name —
|
||||
// text". An `upgrade` rewrites the line that already has that name (Sneak
|
||||
@@ -55,17 +55,13 @@ const LEVEL_FEATURES = {
|
||||
{ name: 'Reckless Attack', text: 'On your first attack each turn you may attack with advantage; attacks against you have advantage until your next turn.' },
|
||||
{ name: 'Danger Sense', text: 'Advantage on Dexterity saves against effects you can see (traps, breath, spells).' },
|
||||
],
|
||||
3: [
|
||||
{ name: 'Frenzy', text: 'Path of the Berserker. While raging you may make one extra melee attack as a bonus action each turn; when the rage ends, gain one level of exhaustion.' },
|
||||
rage('Three times', 2),
|
||||
],
|
||||
3: [rage('Three times', 2)],
|
||||
4: [BOON],
|
||||
5: [EXTRA_ATTACK, { name: 'Fast Movement', text: '+10 ft speed when not in heavy armor (ask your DM to raise your speed).' }],
|
||||
6: [{ name: 'Mindless Rage', text: 'You can’t be charmed or frightened while raging.' }, rage('Four times', 2)],
|
||||
6: [rage('Four times', 2)],
|
||||
7: [{ name: 'Feral Instinct', text: 'Advantage on initiative; you can act normally in a surprise round if you rage first.' }],
|
||||
8: [BOON],
|
||||
9: [{ name: 'Brutal Critical', text: 'Roll one extra weapon damage die on a critical hit.' }, rage('Four times', 3)],
|
||||
10: [{ name: 'Intimidating Presence', text: 'Action: one creature within 30 ft makes a Wisdom save (DC 8 + proficiency bonus + Charisma modifier) or is frightened of you until the end of your next turn.' }],
|
||||
},
|
||||
BARD: {
|
||||
2: [
|
||||
@@ -73,15 +69,12 @@ const LEVEL_FEATURES = {
|
||||
{ name: 'Song of Rest', text: 'During a short rest, allies who spend Hit Dice heal an extra 1d6.' },
|
||||
],
|
||||
3: [
|
||||
{ name: 'Cutting Words', text: 'College of Lore. Reaction: spend a Bardic Inspiration to subtract the die from an enemy’s attack, check or damage roll.' },
|
||||
{ name: 'Bonus Proficiencies', text: 'Treat three extra skills of your choice as proficient (add your proficiency bonus by hand).' },
|
||||
{ name: 'Expertise', text: 'Double proficiency on two proficient skills (add by hand).' },
|
||||
],
|
||||
4: [BOON],
|
||||
5: [bardicInspiration('d8'), { name: 'Font of Inspiration', text: 'Regain Bardic Inspiration on a short rest.' }],
|
||||
6: [
|
||||
{ name: 'Countercharm', text: 'Action: allies within 30 ft get advantage on saves against fear and charm until your next turn.' },
|
||||
{ name: 'Additional Magical Secrets', text: 'Learn two spells from any class list (the DM grants them within the unlock schedule).' },
|
||||
],
|
||||
8: [BOON],
|
||||
9: [{ name: 'Song of Rest', text: 'During a short rest, allies who spend Hit Dice heal an extra 1d8.', upgrade: true }],
|
||||
@@ -93,19 +86,16 @@ const LEVEL_FEATURES = {
|
||||
},
|
||||
CLERIC: {
|
||||
2: [
|
||||
{ name: 'Channel Divinity', text: 'Once per short rest, use Turn Undead or Preserve Life.' },
|
||||
{ name: 'Channel Divinity', text: 'Once per short rest, use Turn Undead or your domain’s Channel Divinity.' },
|
||||
{ name: 'Turn Undead', text: 'Channel Divinity. Action: undead within 30 ft make a Wisdom save or flee from you for 1 minute.' },
|
||||
{ name: 'Preserve Life', text: 'Channel Divinity. Action: share out healing of 5 × your level among creatures within 30 ft (up to half their max HP each).' },
|
||||
],
|
||||
4: [BOON],
|
||||
5: [{ name: 'Destroy Undead', text: 'Undead of CR 1/2 or lower that fail against your Turn Undead are destroyed.' }],
|
||||
6: [
|
||||
{ name: 'Channel Divinity', text: 'Twice per short rest, use Turn Undead or Preserve Life.', upgrade: true },
|
||||
{ name: 'Blessed Healer', text: 'When you heal someone else with a spell, you heal yourself 2 + the spell’s level.' },
|
||||
{ name: 'Channel Divinity', text: 'Twice per short rest, use Turn Undead or your domain’s Channel Divinity.', upgrade: true },
|
||||
],
|
||||
8: [
|
||||
BOON,
|
||||
{ name: 'Divine Strike', text: 'Once per turn, a weapon hit deals +1d8 radiant damage.' },
|
||||
{ name: 'Destroy Undead', text: 'Undead of CR 1 or lower that fail against your Turn Undead are destroyed.', upgrade: true },
|
||||
],
|
||||
10: [{ name: 'Divine Intervention', text: 'Once per week, call on your god: roll d100; if you roll your level or lower, the god helps (the DM decides how).' }],
|
||||
@@ -113,24 +103,17 @@ const LEVEL_FEATURES = {
|
||||
DRUID: {
|
||||
2: [
|
||||
wildShape('CR 1/4 or less (no flying or swimming)'),
|
||||
{ name: 'Natural Recovery', text: 'Once per day on a short rest, recover spent spell slots totalling up to half your level (rounded up).' },
|
||||
{ name: 'Bonus Cantrip', text: 'Learn one extra cantrip (the DM grants it).' },
|
||||
],
|
||||
4: [BOON, wildShape('CR 1/2 or less (it may swim, not fly)')],
|
||||
6: [{ name: 'Land’s Stride', text: 'Ordinary difficult terrain and plants do not slow you; advantage on saves against magical plants.' }],
|
||||
8: [BOON, wildShape('CR 1 or less (it may swim or fly)')],
|
||||
10: [{ name: 'Nature’s Ward', text: 'Immune to poison and disease; you can’t be charmed or frightened by fey or elementals.' }],
|
||||
},
|
||||
FIGHTER: {
|
||||
2: [{ name: 'Action Surge', text: 'Once per short rest, take one extra action on your turn.' }],
|
||||
3: [{ name: 'Improved Critical', text: 'Your weapon attacks score a critical hit on a roll of 19 or 20.' }],
|
||||
4: [BOON],
|
||||
5: [EXTRA_ATTACK],
|
||||
6: [BOON],
|
||||
7: [{ name: 'Remarkable Athlete', text: 'Add half your proficiency bonus to Strength, Dexterity and Constitution checks you are not proficient in; long jump + Strength modifier feet.' }],
|
||||
8: [BOON],
|
||||
9: [{ name: 'Indomitable', text: 'Once per long rest, reroll a failed saving throw.' }],
|
||||
10: [{ name: 'Additional Fighting Style', text: 'Choose a second option from your Fighting Style list. (If it is +1 AC in armor, the DM raises Extra AC by 1.)' }],
|
||||
},
|
||||
MONK: {
|
||||
2: [
|
||||
@@ -141,7 +124,6 @@ const LEVEL_FEATURES = {
|
||||
{ name: 'Unarmored Movement', text: '+10 ft speed without armor (ask your DM to raise your speed).' },
|
||||
],
|
||||
3: [
|
||||
{ name: 'Open Hand Technique', text: 'Flurry hits can knock a target prone (Dexterity save), push it 15 ft (Strength save) or stop its reactions.' },
|
||||
{ name: 'Deflect Missiles', text: 'Reaction: reduce ranged weapon damage by 1d10 + Dexterity modifier + your level.' },
|
||||
],
|
||||
4: [BOON, { name: 'Slow Fall', text: 'Reaction: reduce falling damage by 5 × your level.' }],
|
||||
@@ -152,7 +134,6 @@ const LEVEL_FEATURES = {
|
||||
],
|
||||
6: [
|
||||
{ name: 'Ki-Empowered Strikes', text: 'Your unarmed strikes count as magical.' },
|
||||
{ name: 'Wholeness of Body', text: 'Once per long rest, heal 3 × your level as an action.' },
|
||||
{ name: 'Unarmored Movement', text: '+15 ft speed without armor (ask your DM to raise your speed).', upgrade: true },
|
||||
],
|
||||
7: [EVASION, { name: 'Stillness of Mind', text: 'Action: end charm or fear on yourself.' }],
|
||||
@@ -171,13 +152,10 @@ const LEVEL_FEATURES = {
|
||||
],
|
||||
3: [
|
||||
{ name: 'Divine Health', text: 'Immune to disease.' },
|
||||
{ name: 'Sacred Weapon', text: 'Oath of Devotion, Channel Divinity. Add your Charisma modifier to attack rolls with your weapon for 1 minute; it sheds light.' },
|
||||
{ name: 'Turn the Unholy', text: 'Channel Divinity. Fiends and undead within 30 ft make a Wisdom save or flee for 1 minute.' },
|
||||
],
|
||||
4: [BOON],
|
||||
5: [EXTRA_ATTACK],
|
||||
6: [{ name: 'Aura of Protection', text: 'You and allies within 10 ft add your Charisma modifier to all saving throws while you are conscious.' }],
|
||||
7: [{ name: 'Aura of Devotion', text: 'You and allies within 10 ft can’t be charmed.' }],
|
||||
8: [BOON],
|
||||
10: [{ name: 'Aura of Courage', text: 'You and allies within 10 ft can’t be frightened.' }],
|
||||
},
|
||||
@@ -187,7 +165,6 @@ const LEVEL_FEATURES = {
|
||||
{ name: 'Spellcasting', text: 'Ranger spells unlock: you now have spell slots.' },
|
||||
],
|
||||
3: [
|
||||
{ name: 'Colossus Slayer', text: 'Hunter’s Prey. Once per turn, +1d8 damage to a creature that is already below its max HP.' },
|
||||
{ name: 'Primeval Awareness', text: 'Spend a spell slot: sense aberrations, dragons, fey, fiends, undead and elementals within 1 mile for 1 minute per slot level.' },
|
||||
],
|
||||
4: [BOON],
|
||||
@@ -196,7 +173,6 @@ const LEVEL_FEATURES = {
|
||||
{ name: 'Favored Enemy', text: 'Choose a second favored enemy with your DM.' },
|
||||
{ name: 'Natural Explorer', text: 'Choose a second favored terrain with your DM.' },
|
||||
],
|
||||
7: [{ name: 'Escape the Horde', text: 'Defensive Tactics. Opportunity attacks against you have disadvantage.' }],
|
||||
8: [BOON, LANDS_STRIDE],
|
||||
10: [
|
||||
{ name: 'Hide in Plain Sight', text: 'Spend 1 minute camouflaging: +10 to Stealth while you stay still.' },
|
||||
@@ -205,24 +181,19 @@ const LEVEL_FEATURES = {
|
||||
},
|
||||
ROGUE: {
|
||||
2: [{ name: 'Cunning Action', text: 'Bonus action: Dash, Disengage or Hide.' }],
|
||||
3: [
|
||||
sneakAttack('2d6'),
|
||||
{ name: 'Fast Hands', text: 'Bonus action: Sleight of Hand, pick a lock, disarm a trap or Use an Object.' },
|
||||
{ name: 'Second-Story Work', text: 'Climbing costs no extra movement; running jumps + Dexterity modifier feet.' },
|
||||
],
|
||||
3: [sneakAttack('2d6')],
|
||||
4: [BOON],
|
||||
5: [sneakAttack('3d6'), { name: 'Uncanny Dodge', text: 'Reaction: halve the damage of an attack that hits you.' }],
|
||||
6: [{ name: 'Expertise', text: 'Double proficiency on two more proficient skills (add by hand).' }],
|
||||
7: [sneakAttack('4d6'), EVASION],
|
||||
8: [BOON],
|
||||
9: [sneakAttack('5d6'), { name: 'Supreme Sneak', text: 'Advantage on Stealth if you move no more than half your speed.' }],
|
||||
9: [sneakAttack('5d6')],
|
||||
10: [BOON],
|
||||
},
|
||||
SORCERER: {
|
||||
2: [{ name: 'Font of Magic', text: 'Sorcery points equal to your level; they come back on a long rest. Bonus action: turn points into a spell slot (2 points = 1st, 3 = 2nd, 5 = 3rd, 6 = 4th, 7 = 5th), or a spell slot into points equal to its level.' }],
|
||||
3: [{ name: 'Metamagic', text: 'Choose two with your DM: Quickened Spell (2 points: cast an action spell as a bonus action), Twinned Spell (points = spell level: hit a second target with a single-target spell), Careful Spell (1 point: allies auto-succeed on your spell’s save), Subtle Spell (1 point: cast without words or gestures), Extended Spell (1 point: double duration), Heightened Spell (3 points: one target has disadvantage on its first save).' }],
|
||||
4: [BOON],
|
||||
6: [{ name: 'Elemental Affinity', text: 'Draconic Bloodline. Add your Charisma modifier to one damage roll of your dragon’s element; spend 1 sorcery point to resist that element for 1 hour.' }],
|
||||
8: [BOON],
|
||||
10: [{ name: 'Metamagic', text: 'Choose a third option with your DM.' }],
|
||||
},
|
||||
@@ -231,21 +202,13 @@ const LEVEL_FEATURES = {
|
||||
3: [{ name: 'Pact Boon', text: 'Choose one with your DM: Pact of the Blade (summon a weapon of your choice as an action; it counts as magical), Pact of the Chain (gain a small familiar spirit: an imp, a sprite or a cat-shaped shadow), or Pact of the Tome (a book of three extra cantrips from any class, which the DM grants).' }],
|
||||
4: [BOON],
|
||||
5: [invocations('three')],
|
||||
6: [{ name: 'Patron’s Luck', text: 'Once per short rest, add a d10 to an ability check or saving throw after seeing the roll.' }],
|
||||
7: [invocations('four')],
|
||||
8: [BOON],
|
||||
9: [invocations('five')],
|
||||
10: [{ name: 'Patron’s Resilience', text: 'After each rest, choose one damage type: you resist it until you choose another.' }],
|
||||
},
|
||||
WIZARD: {
|
||||
2: [
|
||||
{ name: 'Evocation Savant', text: 'School of Evocation. Copying evocation spells costs half the time and gold.' },
|
||||
{ name: 'Sculpt Spells', text: 'When you cast an evocation spell that hits an area, choose 1 + the spell’s level creatures to automatically save and take no damage.' },
|
||||
],
|
||||
4: [BOON],
|
||||
6: [{ name: 'Potent Cantrip', text: 'Creatures that save against your damaging cantrips still take half damage.' }],
|
||||
8: [BOON],
|
||||
10: [{ name: 'Empowered Evocation', text: 'Add your Intelligence modifier to the damage of your evocation spells.' }],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,501 @@
|
||||
// Subclasses: the path a character takes within their class. Three per class.
|
||||
// The first of each is the path every character of that class followed before
|
||||
// subclasses could be chosen (the Champion fighter, the Life cleric...); its
|
||||
// lines are word for word what the class tables used to write, so sheets
|
||||
// written back then still match.
|
||||
//
|
||||
// `features` are by character level, in the same shape as LEVEL_FEATURES
|
||||
// (levelFeatures.js): each becomes a line of the special abilities, and an
|
||||
// `upgrade` rewrites the line that already has its name. Like the class
|
||||
// tables they stop at level 10, and none of it feeds the calculation engine.
|
||||
|
||||
// The level at which a class chooses.
|
||||
const SUBCLASS_LEVEL = {
|
||||
BARBARIAN: 3,
|
||||
BARD: 3,
|
||||
CLERIC: 2,
|
||||
DRUID: 2,
|
||||
FIGHTER: 3,
|
||||
MONK: 3,
|
||||
PALADIN: 3,
|
||||
RANGER: 3,
|
||||
ROGUE: 3,
|
||||
SORCERER: 3,
|
||||
WARLOCK: 3,
|
||||
WIZARD: 2,
|
||||
};
|
||||
|
||||
const SUBCLASSES = {
|
||||
BARBARIAN: [
|
||||
{
|
||||
key: 'BERSERKER',
|
||||
name: 'Path of the Berserker',
|
||||
summary: 'Rage as pure fury: extra attacks now, exhaustion after.',
|
||||
features: {
|
||||
3: [{ name: 'Frenzy', text: 'Path of the Berserker. While raging you may make one extra melee attack as a bonus action each turn; when the rage ends, gain one level of exhaustion.' }],
|
||||
6: [{ name: 'Mindless Rage', text: 'You can’t be charmed or frightened while raging.' }],
|
||||
10: [{ name: 'Intimidating Presence', text: 'Action: one creature within 30 ft makes a Wisdom save (DC 8 + proficiency bonus + Charisma modifier) or is frightened of you until the end of your next turn.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'TOTEM_WARRIOR',
|
||||
name: 'Path of the Totem Warrior',
|
||||
summary: 'A spirit animal walks with you and lends its strength.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Spirit Seeker', text: 'Path of the Totem Warrior. You can speak with beasts and sense what they sense, as a ritual with your DM.' },
|
||||
{ name: 'Totem Spirit', text: 'Choose one with your DM. Bear: while raging, all damage but psychic is halved. Eagle: while raging, opportunity attacks against you have disadvantage and you can Dash as a bonus action. Wolf: while raging, allies have advantage on melee attacks against enemies next to you.' },
|
||||
],
|
||||
6: [{ name: 'Aspect of the Beast', text: 'Choose one with your DM. Bear: carry twice as much, advantage on Strength checks to push, pull or lift. Eagle: see clearly up to a mile, no penalty in dim light. Wolf: track at a fast pace and move stealthily at a normal one.' }],
|
||||
10: [{ name: 'Spirit Walker', text: 'As a ritual, ask the spirits of a place for what they know (the DM answers as a nature spirit would).' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'ZEALOT',
|
||||
name: 'Path of the Zealot',
|
||||
summary: 'A god’s fury in your blows, and death has trouble keeping you.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Divine Fury', text: 'Path of the Zealot. While raging, the first creature you hit each turn takes an extra 1d6 + half your level radiant or necrotic damage.' },
|
||||
{ name: 'Warrior of the Gods', text: 'Spells that bring you back from the dead cost nothing to cast on you.' },
|
||||
],
|
||||
6: [{ name: 'Fanatical Focus', text: 'Once per rage, reroll a saving throw you just failed.' }],
|
||||
10: [{ name: 'Zealous Presence', text: 'Once per long rest, bonus action: up to ten allies within 60 ft have advantage on attacks and saves until your next turn.' }],
|
||||
},
|
||||
},
|
||||
],
|
||||
BARD: [
|
||||
{
|
||||
key: 'LORE',
|
||||
name: 'College of Lore',
|
||||
summary: 'Knows a bit of everything, and a word to trip anyone up.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Cutting Words', text: 'College of Lore. Reaction: spend a Bardic Inspiration to subtract the die from an enemy’s attack, check or damage roll.' },
|
||||
{ name: 'Bonus Proficiencies', text: 'Treat three extra skills of your choice as proficient (add your proficiency bonus by hand).' },
|
||||
],
|
||||
6: [{ name: 'Additional Magical Secrets', text: 'Learn two spells from any class list (the DM grants them within the unlock schedule).' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'VALOR',
|
||||
name: 'College of Valor',
|
||||
summary: 'A skald in the front line, inspiring by example.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Combat Inspiration', text: 'College of Valor. A creature with your Bardic Inspiration may add the die to a weapon damage roll, or to its AC against one attack as a reaction.' },
|
||||
{ name: 'Battle Training', text: 'You fight in medium armor and with a shield (the DM raises Extra AC to match what you wear).' },
|
||||
],
|
||||
6: [{ name: 'Extra Attack', text: 'Attack twice when you take the Attack action.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'SWORDS',
|
||||
name: 'College of Swords',
|
||||
summary: 'A blade dancer whose performance is the fight itself.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Fighting Style', text: 'College of Swords. Choose one with your DM: +2 damage with a one-handed weapon and nothing in the other hand, or add your ability modifier to the damage of a second weapon (added by hand).' },
|
||||
{ name: 'Blade Flourish', text: 'When you attack on your turn, +10 ft speed that turn. On a hit, spend a Bardic Inspiration and add the die to the damage, and choose: add it to your AC until your next turn, hit a second creature next to you for the die’s roll, or push the target 5 ft + the roll and follow it.' },
|
||||
],
|
||||
6: [{ name: 'Extra Attack', text: 'Attack twice when you take the Attack action.' }],
|
||||
},
|
||||
},
|
||||
],
|
||||
CLERIC: [
|
||||
{
|
||||
key: 'LIFE',
|
||||
name: 'Life Domain',
|
||||
summary: 'The healer: more from every cure, and healing in a burst.',
|
||||
features: {
|
||||
2: [{ name: 'Preserve Life', text: 'Channel Divinity. Action: share out healing of 5 × your level among creatures within 30 ft (up to half their max HP each).' }],
|
||||
6: [{ name: 'Blessed Healer', text: 'When you heal someone else with a spell, you heal yourself 2 + the spell’s level.' }],
|
||||
8: [{ name: 'Divine Strike', text: 'Once per turn, a weapon hit deals +1d8 radiant damage.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'LIGHT',
|
||||
name: 'Light Domain',
|
||||
summary: 'Fire and radiance: blinds attackers and burns the dark away.',
|
||||
features: {
|
||||
2: [
|
||||
{ name: 'Warding Flare', text: 'Light Domain. Reaction, a few times per day (your Wisdom modifier, at least once): a creature within 30 ft that attacks you has disadvantage on that attack.' },
|
||||
{ name: 'Radiance of the Dawn', text: 'Channel Divinity. Action: magical darkness within 30 ft is dispelled, and each enemy there takes 2d10 + your level radiant damage (Constitution save for half).' },
|
||||
],
|
||||
6: [{ name: 'Improved Flare', text: 'Use Warding Flare when a creature attacks someone else within 30 ft of you.' }],
|
||||
8: [{ name: 'Potent Spellcasting', text: 'Add your Wisdom modifier to the damage of your cleric cantrips.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'WAR',
|
||||
name: 'War Domain',
|
||||
summary: 'A soldier of the faith: extra strikes and blows that land.',
|
||||
features: {
|
||||
2: [
|
||||
{ name: 'War Priest', text: 'War Domain. A few times per day (your Wisdom modifier, at least once), after you take the Attack action, make one weapon attack as a bonus action.' },
|
||||
{ name: 'Guided Strike', text: 'Channel Divinity. When you make an attack roll, add +10 to it after seeing the roll.' },
|
||||
],
|
||||
6: [{ name: 'War God’s Blessing', text: 'Channel Divinity. Reaction: give +10 to an attack roll made by a creature within 30 ft.' }],
|
||||
8: [{ name: 'Divine Strike', text: 'Once per turn, a weapon hit deals +1d8 damage of the weapon’s type.' }],
|
||||
},
|
||||
},
|
||||
],
|
||||
DRUID: [
|
||||
{
|
||||
key: 'LAND',
|
||||
name: 'Circle of the Land',
|
||||
summary: 'A keeper of old magic, at home in the wild places.',
|
||||
features: {
|
||||
2: [
|
||||
{ name: 'Natural Recovery', text: 'Once per day on a short rest, recover spent spell slots totalling up to half your level (rounded up).' },
|
||||
{ name: 'Bonus Cantrip', text: 'Learn one extra cantrip (the DM grants it).' },
|
||||
],
|
||||
6: [{ name: 'Land’s Stride', text: 'Ordinary difficult terrain and plants do not slow you; advantage on saves against magical plants.' }],
|
||||
10: [{ name: 'Nature’s Ward', text: 'Immune to poison and disease; you can’t be charmed or frightened by fey or elementals.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'MOON',
|
||||
name: 'Circle of the Moon',
|
||||
summary: 'A shapeshifter who fights as the beast.',
|
||||
features: {
|
||||
2: [
|
||||
{ name: 'Combat Wild Shape', text: 'Circle of the Moon. Use Wild Shape as a bonus action. While in beast form, bonus action: spend a spell slot to heal 1d8 per slot level.' },
|
||||
{ name: 'Circle Forms', text: 'Your Wild Shape can be a beast of up to CR 1; from level 6, up to CR equal to a third of your level (rounded down).' },
|
||||
],
|
||||
6: [{ name: 'Primal Strike', text: 'Your attacks in beast form count as magical.' }],
|
||||
10: [{ name: 'Elemental Wild Shape', text: 'Spend both uses of Wild Shape at once to become an air, earth, fire or water elemental.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'STARS',
|
||||
name: 'Circle of Stars',
|
||||
summary: 'Reads the night sky and wears its constellations.',
|
||||
features: {
|
||||
2: [
|
||||
{ name: 'Star Map', text: 'Circle of Stars. You know the Guidance cantrip, and cast Guiding Bolt without a slot a number of times per day equal to your proficiency bonus (the DM grants both).' },
|
||||
{ name: 'Starry Form', text: 'Bonus action: spend a Wild Shape use to take a starry form for 10 minutes. Choose Archer (bonus action: ranged spell attack, 60 ft, 1d8 + Wisdom modifier radiant), Chalice (when you cast a healing spell, another creature within 30 ft heals 1d8 + Wisdom modifier) or Dragon (treat a roll of 9 or lower as 10 on Intelligence and Wisdom checks and on concentration saves).' },
|
||||
],
|
||||
6: [{ name: 'Cosmic Omen', text: 'After a long rest roll a die. Even (Weal): reaction, add 1d6 to a creature’s attack, check or save. Odd (Woe): reaction, subtract 1d6. Usable a number of times per day equal to your proficiency bonus, on creatures within 30 ft.' }],
|
||||
10: [{ name: 'Twinkling Constellations', text: 'Archer and Chalice use 2d8. In Dragon form you can fly 20 ft. At the start of each turn in Starry Form you may change constellation.' }],
|
||||
},
|
||||
},
|
||||
],
|
||||
FIGHTER: [
|
||||
{
|
||||
key: 'CHAMPION',
|
||||
name: 'Champion',
|
||||
summary: 'Simple and deadly: more critical hits, more athletic.',
|
||||
features: {
|
||||
3: [{ name: 'Improved Critical', text: 'Your weapon attacks score a critical hit on a roll of 19 or 20.' }],
|
||||
7: [{ name: 'Remarkable Athlete', text: 'Add half your proficiency bonus to Strength, Dexterity and Constitution checks you are not proficient in; long jump + Strength modifier feet.' }],
|
||||
10: [{ name: 'Additional Fighting Style', text: 'Choose a second option from your Fighting Style list. (If it is +1 AC in armor, the DM raises Extra AC by 1.)' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'BATTLE_MASTER',
|
||||
name: 'Battle Master',
|
||||
summary: 'A tactician who turns each swing into a manoeuvre.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Combat Superiority', text: 'Battle Master. Four superiority dice (d8), back on a short rest. Spend one on a manoeuvre; where a save is called for the DC is 8 + proficiency bonus + Strength or Dexterity modifier.' },
|
||||
{ name: 'Manoeuvres', text: 'Choose three with your DM: Trip Attack (add the die to damage; Strength save or prone), Disarming Attack (add the die; Strength save or it drops what it holds), Pushing Attack (add the die; Strength save or pushed 15 ft), Precision Attack (add the die to an attack roll), Riposte (reaction when a creature misses you: attack it and add the die), Parry (reaction: reduce melee damage by the die + Dexterity modifier), Rally (bonus action: an ally gains the die + Charisma modifier Temp HP), Menacing Attack (add the die; Wisdom save or frightened until your next turn).' },
|
||||
],
|
||||
7: [
|
||||
{ name: 'Know Your Enemy', text: 'After a minute watching a creature, the DM tells you whether it is your equal, better or worse in two of: Strength, Dexterity, Constitution, AC, current HP, level.' },
|
||||
{ name: 'Combat Superiority', text: 'Battle Master. Five superiority dice (d8), back on a short rest. Spend one on a manoeuvre; where a save is called for the DC is 8 + proficiency bonus + Strength or Dexterity modifier.', upgrade: true },
|
||||
{ name: 'Manoeuvres', text: 'Choose two more with your DM (five in all) from the list on your level 3 line.' },
|
||||
],
|
||||
10: [{ name: 'Combat Superiority', text: 'Battle Master. Five superiority dice (d10), back on a short rest. Spend one on a manoeuvre; where a save is called for the DC is 8 + proficiency bonus + Strength or Dexterity modifier. Choose two more manoeuvres with your DM (seven in all).', upgrade: true }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'SAMURAI',
|
||||
name: 'Samurai',
|
||||
summary: 'Unbreakable resolve: strikes with advantage and shrugs off blows.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Fighting Spirit', text: 'Samurai. Three times per long rest, bonus action: advantage on all weapon attacks this turn and gain 5 Temp HP.' },
|
||||
{ name: 'Bonus Proficiency', text: 'Treat one of History, Insight, Performance or Persuasion as proficient (add your proficiency bonus by hand).' },
|
||||
],
|
||||
7: [{ name: 'Elegant Courtier', text: 'Add your Wisdom modifier to Persuasion checks, and treat Wisdom saves as proficient (both added by hand).' }],
|
||||
10: [
|
||||
{ name: 'Tireless Spirit', text: 'If you roll initiative with no uses of Fighting Spirit left, you regain one.' },
|
||||
{ name: 'Fighting Spirit', text: 'Samurai. Three times per long rest, bonus action: advantage on all weapon attacks this turn and gain 10 Temp HP.', upgrade: true },
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
MONK: [
|
||||
{
|
||||
key: 'OPEN_HAND',
|
||||
name: 'Way of the Open Hand',
|
||||
summary: 'Pure martial arts: knocks down, pushes away, heals itself.',
|
||||
features: {
|
||||
3: [{ name: 'Open Hand Technique', text: 'Flurry hits can knock a target prone (Dexterity save), push it 15 ft (Strength save) or stop its reactions.' }],
|
||||
6: [{ name: 'Wholeness of Body', text: 'Once per long rest, heal 3 × your level as an action.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'SHADOW',
|
||||
name: 'Way of Shadow',
|
||||
summary: 'A ninja: steps between shadows and strikes unseen.',
|
||||
features: {
|
||||
3: [{ name: 'Shadow Arts', text: 'Way of Shadow. 2 ki: cast Darkness, Darkvision, Pass without Trace or Silence without a slot. You can also make a small illusion at will.' }],
|
||||
6: [{ name: 'Shadow Step', text: 'Bonus action, while in dim light or darkness: teleport up to 60 ft to another dim or dark spot you can see, and have advantage on your first melee attack this turn.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'FOUR_ELEMENTS',
|
||||
name: 'Way of the Four Elements',
|
||||
summary: 'Bends fire, water, earth and air with ki.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Elemental Attunement', text: 'Way of the Four Elements. Action: a harmless trick of fire, water, earth or air within 30 ft (light or snuff a flame, chill or warm, shape a little earth or mist).' },
|
||||
{ name: 'Elemental Disciplines', text: 'Choose one with your DM: Fangs of the Fire Snake (1 ki: your unarmed reach is 10 ft this turn and hits deal fire damage; +1 ki for +1d10 fire), Fist of Unbroken Air (2 ki: one creature within 30 ft takes 3d10 bludgeoning, is pushed 20 ft and knocked prone; Strength save for half and no push), Water Whip (2 ki: one creature within 30 ft takes 3d10 bludgeoning and is pulled 25 ft or knocked prone; Dexterity save for half), Shape the Flowing River (1 ki: reshape or freeze water or ice in a 30 ft cube).' },
|
||||
],
|
||||
6: [{ name: 'Elemental Disciplines', text: 'Choose one more with your DM (two in all). New at this level: Gong of the Summit (3 ki: cast Shatter), Clench of the North Wind (3 ki: cast Hold Person).' }],
|
||||
},
|
||||
},
|
||||
],
|
||||
PALADIN: [
|
||||
{
|
||||
key: 'DEVOTION',
|
||||
name: 'Oath of Devotion',
|
||||
summary: 'The shining knight: honesty, courage, a blessed blade.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Sacred Weapon', text: 'Oath of Devotion, Channel Divinity. Add your Charisma modifier to attack rolls with your weapon for 1 minute; it sheds light.' },
|
||||
{ name: 'Turn the Unholy', text: 'Channel Divinity. Fiends and undead within 30 ft make a Wisdom save or flee for 1 minute.' },
|
||||
],
|
||||
7: [{ name: 'Aura of Devotion', text: 'You and allies within 10 ft can’t be charmed.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'ANCIENTS',
|
||||
name: 'Oath of the Ancients',
|
||||
summary: 'A green knight who guards life, light and laughter.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Nature’s Wrath', text: 'Oath of the Ancients, Channel Divinity. Spectral vines restrain a creature within 10 ft (Strength or Dexterity save; it repeats the save at the end of each of its turns).' },
|
||||
{ name: 'Turn the Faithless', text: 'Channel Divinity. Fey and fiends within 30 ft make a Wisdom save or flee for 1 minute.' },
|
||||
],
|
||||
7: [{ name: 'Aura of Warding', text: 'You and allies within 10 ft take half damage from spells.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'VENGEANCE',
|
||||
name: 'Oath of Vengeance',
|
||||
summary: 'A relentless hunter of one sworn enemy at a time.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Vow of Enmity', text: 'Oath of Vengeance, Channel Divinity. Bonus action: for 1 minute you have advantage on attack rolls against one creature within 10 ft.' },
|
||||
{ name: 'Abjure Enemy', text: 'Channel Divinity. One creature within 60 ft makes a Wisdom save or is frightened and cannot move for 1 minute; on a success its speed is halved.' },
|
||||
],
|
||||
7: [{ name: 'Relentless Avenger', text: 'When you hit with an opportunity attack, move up to half your speed straight afterwards without provoking attacks.' }],
|
||||
},
|
||||
},
|
||||
],
|
||||
RANGER: [
|
||||
{
|
||||
key: 'HUNTER',
|
||||
name: 'Hunter',
|
||||
summary: 'Brings down the biggest thing in the room.',
|
||||
features: {
|
||||
3: [{ name: 'Colossus Slayer', text: 'Hunter’s Prey. Once per turn, +1d8 damage to a creature that is already below its max HP.' }],
|
||||
7: [{ name: 'Escape the Horde', text: 'Defensive Tactics. Opportunity attacks against you have disadvantage.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'BEAST_MASTER',
|
||||
name: 'Beast Master',
|
||||
summary: 'Fights beside an animal companion.',
|
||||
features: {
|
||||
3: [{ name: 'Ranger’s Companion', text: 'Beast Master. A beast of CR 1/4 or lower fights beside you (the DM adds it to encounters as a monster). It acts on your turn: it can move freely, and attacks, Dashes, Disengages or Helps when you use your action to tell it to. Add your proficiency bonus to its AC, attacks and damage. If it dies, bond with another over 8 hours.' }],
|
||||
7: [{ name: 'Exceptional Training', text: 'On a turn your companion does not attack, it can Dash, Disengage or Help as your bonus action. Its attacks count as magical.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'GLOOM_STALKER',
|
||||
name: 'Gloom Stalker',
|
||||
summary: 'An ambusher who owns the first round and the dark.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Dread Ambusher', text: 'Gloom Stalker. Add your Wisdom modifier to initiative (ask your DM to count it). On your first turn of a fight: +10 ft speed and one extra weapon attack, which deals +1d8 damage on a hit.' },
|
||||
{ name: 'Umbral Sight', text: 'You see in darkness to 60 ft, and creatures that rely on darkvision cannot see you in the dark.' },
|
||||
],
|
||||
7: [{ name: 'Iron Mind', text: 'Treat Wisdom saves as proficient (add your proficiency bonus by hand).' }],
|
||||
},
|
||||
},
|
||||
],
|
||||
ROGUE: [
|
||||
{
|
||||
key: 'THIEF',
|
||||
name: 'Thief',
|
||||
summary: 'Quick fingers, rooftops and anything that can be used.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Fast Hands', text: 'Bonus action: Sleight of Hand, pick a lock, disarm a trap or Use an Object.' },
|
||||
{ name: 'Second-Story Work', text: 'Climbing costs no extra movement; running jumps + Dexterity modifier feet.' },
|
||||
],
|
||||
9: [{ name: 'Supreme Sneak', text: 'Advantage on Stealth if you move no more than half your speed.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'ASSASSIN',
|
||||
name: 'Assassin',
|
||||
summary: 'Strikes first, and the first strike is the worst.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Assassinate', text: 'Assassin. Advantage on attacks against any creature that has not yet taken a turn in this fight, and any hit on a surprised creature is a critical hit.' },
|
||||
{ name: 'Tools of the Trade', text: 'You are practised with disguises and poisons: advantage on checks to make or use them.' },
|
||||
],
|
||||
9: [{ name: 'Infiltration Expertise', text: 'With a week and 25 gold you build a false identity with papers and a history; nobody doubts it without an obvious reason.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'SWASHBUCKLER',
|
||||
name: 'Swashbuckler',
|
||||
summary: 'A duellist: in, strike, out, and a smile.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Fancy Footwork', text: 'Swashbuckler. A creature you made a melee attack against this turn cannot make opportunity attacks against you until the turn ends.' },
|
||||
{ name: 'Rakish Audacity', text: 'Add your Charisma modifier to initiative (ask your DM to count it). You can Sneak Attack a creature with nobody else next to you or it, without needing advantage.' },
|
||||
],
|
||||
9: [{ name: 'Panache', text: 'Action: Persuasion against a creature’s Insight. A hostile one has disadvantage on attacks against anyone but you for 1 minute; any other is charmed by you for 1 minute.' }],
|
||||
},
|
||||
},
|
||||
],
|
||||
SORCERER: [
|
||||
{
|
||||
key: 'DRACONIC',
|
||||
name: 'Draconic Bloodline',
|
||||
summary: 'Dragon blood: tougher skin and one element at your call.',
|
||||
features: {
|
||||
3: [{ name: 'Dragon Ancestor', text: 'Draconic Bloodline. Choose a kind of dragon with your DM; its element is yours (red: fire, white: cold, blue: lightning, green: poison, black: acid). Thin scales make you hardier (ask your DM about Extra AC).' }],
|
||||
6: [{ name: 'Elemental Affinity', text: 'Draconic Bloodline. Add your Charisma modifier to one damage roll of your dragon’s element; spend 1 sorcery point to resist that element for 1 hour.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'WILD_MAGIC',
|
||||
name: 'Wild Magic',
|
||||
summary: 'Raw chaos: luck you can bend, and surprises you cannot.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Wild Magic Surge', text: 'Wild Magic. After you cast a sorcerer spell of 1st level or higher, the DM may have you roll a d20: on a 1, something strange happens (the DM decides, or rolls on a table of their own).' },
|
||||
{ name: 'Tides of Chaos', text: 'Once per long rest, gain advantage on one attack, check or save. The DM may give it back by calling for a Wild Magic Surge.' },
|
||||
],
|
||||
6: [{ name: 'Bend Luck', text: 'Reaction, 2 sorcery points: add or subtract 1d4 from another creature’s attack, check or save.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'STORM',
|
||||
name: 'Storm Sorcery',
|
||||
summary: 'Wind and lightning: never stands still for long.',
|
||||
features: {
|
||||
3: [
|
||||
{ name: 'Tempestuous Magic', text: 'Storm Sorcery. Bonus action, just before or after casting a spell of 1st level or higher: fly 10 ft without provoking opportunity attacks.' },
|
||||
{ name: 'Wind Speaker', text: 'You speak the tongue of air, water, earth and fire elementals.' },
|
||||
],
|
||||
6: [
|
||||
{ name: 'Heart of the Storm', text: 'You resist lightning and thunder damage. When you start casting a lightning or thunder spell of 1st level or higher, creatures of your choice within 10 ft take half your level in lightning or thunder damage.' },
|
||||
{ name: 'Storm Guide', text: 'Action: stop rain falling within 20 ft of you. Bonus action: choose which way the wind blows within 100 ft until your next turn.' },
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
WARLOCK: [
|
||||
{
|
||||
key: 'FIEND',
|
||||
name: 'The Fiend',
|
||||
summary: 'A pact with something from the hells: power fed by the fallen.',
|
||||
features: {
|
||||
3: [{ name: 'Dark One’s Blessing', text: 'The Fiend. When you bring a hostile creature to 0 HP, gain Temp HP equal to your Charisma modifier + your level (the DM adds it).' }],
|
||||
6: [{ name: 'Patron’s Luck', text: 'Once per short rest, add a d10 to an ability check or saving throw after seeing the roll.' }],
|
||||
10: [{ name: 'Patron’s Resilience', text: 'After each rest, choose one damage type: you resist it until you choose another.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'ARCHFEY',
|
||||
name: 'The Archfey',
|
||||
summary: 'A fey lord’s favourite: glamour, vanishing and beguilement.',
|
||||
features: {
|
||||
3: [{ name: 'Fey Presence', text: 'The Archfey. Once per short rest, action: each creature in a 10 ft cube from you makes a Wisdom save or is charmed or frightened (your choice) until the end of your next turn.' }],
|
||||
6: [{ name: 'Misty Escape', text: 'Once per short rest, reaction when you take damage: turn invisible and teleport up to 60 ft. You stay invisible until your next turn, or until you attack or cast.' }],
|
||||
10: [{ name: 'Beguiling Defenses', text: 'You can’t be charmed. When a creature tries, turn it back: it makes a Wisdom save or is charmed by you for 1 minute.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'GREAT_OLD_ONE',
|
||||
name: 'The Great Old One',
|
||||
summary: 'Something vast and unknowable whispers through you.',
|
||||
features: {
|
||||
3: [{ name: 'Awakened Mind', text: 'The Great Old One. Speak mind to mind with any creature you can see within 30 ft; it needs no shared language, only to know one.' }],
|
||||
6: [{ name: 'Entropic Ward', text: 'Once per short rest, reaction: an attack against you has disadvantage. If it misses, your next attack against that creature has advantage.' }],
|
||||
10: [{ name: 'Thought Shield', text: 'Nobody reads your thoughts unless you allow it. You resist psychic damage, and whoever deals it to you takes the same amount.' }],
|
||||
},
|
||||
},
|
||||
],
|
||||
WIZARD: [
|
||||
{
|
||||
key: 'EVOCATION',
|
||||
name: 'School of Evocation',
|
||||
summary: 'Blasting, with friends left standing in the middle of it.',
|
||||
features: {
|
||||
2: [
|
||||
{ name: 'Evocation Savant', text: 'School of Evocation. Copying evocation spells costs half the time and gold.' },
|
||||
{ name: 'Sculpt Spells', text: 'When you cast an evocation spell that hits an area, choose 1 + the spell’s level creatures to automatically save and take no damage.' },
|
||||
],
|
||||
6: [{ name: 'Potent Cantrip', text: 'Creatures that save against your damaging cantrips still take half damage.' }],
|
||||
10: [{ name: 'Empowered Evocation', text: 'Add your Intelligence modifier to the damage of your evocation spells.' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'ABJURATION',
|
||||
name: 'School of Abjuration',
|
||||
summary: 'Wards and counters: a shield of magic that takes the hits.',
|
||||
features: {
|
||||
2: [
|
||||
{ name: 'Abjuration Savant', text: 'School of Abjuration. Copying abjuration spells costs half the time and gold.' },
|
||||
{ name: 'Arcane Ward', text: 'When you cast an abjuration spell of 1st level or higher, a ward appears with HP of twice your level + your Intelligence modifier; it takes damage before you do (the DM tracks it as Temp HP). It lasts until a long rest; later abjuration spells restore twice their level to it.' },
|
||||
],
|
||||
6: [{ name: 'Projected Ward', text: 'Reaction: when a creature within 30 ft takes damage, your Arcane Ward takes it instead.' }],
|
||||
10: [{ name: 'Improved Abjuration', text: 'Add your proficiency bonus to ability checks made as part of an abjuration spell (Counterspell, Dispel Magic).' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'ILLUSION',
|
||||
name: 'School of Illusion',
|
||||
summary: 'Tricks of light and sound that hold up to a second look.',
|
||||
features: {
|
||||
2: [
|
||||
{ name: 'Illusion Savant', text: 'School of Illusion. Copying illusion spells costs half the time and gold.' },
|
||||
{ name: 'Improved Minor Illusion', text: 'You know Minor Illusion (the DM grants it), and it makes a sound and an image with one casting.' },
|
||||
],
|
||||
6: [{ name: 'Malleable Illusions', text: 'Action: change what an illusion of yours looks like while it lasts, if it lasts a minute or more.' }],
|
||||
10: [{ name: 'Illusory Self', text: 'Once per short rest, reaction when a creature attacks you: a copy of you takes the blow and the attack misses.' }],
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
function subclassesOf(characterClass) {
|
||||
return SUBCLASSES[characterClass] || [];
|
||||
}
|
||||
|
||||
// One subclass of a class by its key; null when the class has no such subclass.
|
||||
function findSubclass(characterClass, key) {
|
||||
return subclassesOf(characterClass).find((subclass) => subclass.key === key) || null;
|
||||
}
|
||||
|
||||
function subclassName(characterClass, key) {
|
||||
const subclass = findSubclass(characterClass, key);
|
||||
return subclass ? subclass.name : null;
|
||||
}
|
||||
|
||||
// The path a class followed before subclasses could be chosen.
|
||||
function defaultSubclass(characterClass) {
|
||||
return subclassesOf(characterClass)[0] || null;
|
||||
}
|
||||
|
||||
module.exports = { SUBCLASS_LEVEL, SUBCLASSES, subclassesOf, findSubclass, subclassName, defaultSubclass };
|
||||
@@ -0,0 +1,51 @@
|
||||
// Experience points: what a monster is worth by challenge rating, how hard a
|
||||
// fight is for a party, and the XP each level takes. The 5e (2014) tables.
|
||||
|
||||
// XP for defeating one monster of a challenge rating.
|
||||
const CR_XP = {
|
||||
0: 10, '1/8': 25, '1/4': 50, '1/2': 100,
|
||||
1: 200, 2: 450, 3: 700, 4: 1100, 5: 1800, 6: 2300, 7: 2900, 8: 3900, 9: 5000, 10: 5900,
|
||||
11: 7200, 12: 8400, 13: 10000, 14: 11500, 15: 13000, 16: 15000, 17: 18000, 18: 20000, 19: 22000, 20: 25000,
|
||||
21: 33000, 22: 41000, 23: 50000, 24: 62000, 25: 75000, 26: 90000, 27: 105000, 28: 120000, 29: 135000, 30: 155000,
|
||||
};
|
||||
|
||||
// What one character of a level can take on: [easy, medium, hard, deadly],
|
||||
// level 1 first. A party's thresholds are its members' added up.
|
||||
const XP_THRESHOLDS = [
|
||||
[25, 50, 75, 100],
|
||||
[50, 100, 150, 200],
|
||||
[75, 150, 225, 400],
|
||||
[125, 250, 375, 500],
|
||||
[250, 500, 750, 1100],
|
||||
[300, 600, 900, 1400],
|
||||
[350, 750, 1100, 1700],
|
||||
[450, 900, 1400, 2100],
|
||||
[550, 1100, 1600, 2400],
|
||||
[600, 1200, 1900, 2800],
|
||||
[800, 1600, 2400, 3600],
|
||||
[1000, 2000, 3000, 4500],
|
||||
[1100, 2200, 3400, 5100],
|
||||
[1250, 2500, 3800, 5700],
|
||||
[1400, 2800, 4300, 6400],
|
||||
[1600, 3200, 4800, 7200],
|
||||
[2000, 3900, 5900, 8800],
|
||||
[2100, 4200, 6300, 9500],
|
||||
[2400, 4900, 7300, 10900],
|
||||
[2800, 5700, 8500, 12700],
|
||||
];
|
||||
|
||||
// Many monsters are harder than their XP says: the total is multiplied by
|
||||
// this to judge the fight (never to award it). [at least this many, multiplier].
|
||||
const COUNT_MULTIPLIERS = [
|
||||
[15, 4],
|
||||
[11, 3],
|
||||
[7, 2.5],
|
||||
[3, 2],
|
||||
[2, 1.5],
|
||||
[1, 1],
|
||||
];
|
||||
|
||||
// Total XP at which each level is reached, level 1 first.
|
||||
const LEVEL_XP = [0, 300, 900, 2700, 6500, 14000, 23000, 34000, 48000, 64000, 85000, 100000, 120000, 140000, 165000, 195000, 225000, 265000, 305000, 355000];
|
||||
|
||||
module.exports = { CR_XP, XP_THRESHOLDS, COUNT_MULTIPLIERS, LEVEL_XP };
|
||||
Reference in New Issue
Block a user