Skip to content

Instantly share code, notes, and snippets.

@AelarTheElfRogue
Last active December 2, 2019 16:13
Show Gist options
  • Save AelarTheElfRogue/bc411ea6f6ec74c764c0ef9050514df1 to your computer and use it in GitHub Desktop.
Save AelarTheElfRogue/bc411ea6f6ec74c764c0ef9050514df1 to your computer and use it in GitHub Desktop.
[Race] - Half-Orc Variants
var iFileName = "HalfOrcVariants.js";
RaceList["half-orc-feraltieflingvariant"] = {
regExpSearch : /^(?=.*feral)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Feral Tiefling Half-orc",
sortname : "Half-orc, Feral Tiefling",
source : [["SRD", 7], ["P", 41], ["HB", 0]],
plural : "Feral Tiefling Half-orcs",
size : 3,
speed : {
walk : { spd : 30, enc : 20 }
},
languageProfs : ["Common", "Orc", "Infernal"],
vision : [["Darkvision", 60]],
age : " reach adulthood around age 14 and rarely live longer than 75 years",
height : " range from 5 to well over 6 feet tall (4'10\" + 2d10\")",
weight : " weigh around 215 lb (140 + 2d10 \xD7 2d6 lb)",
heightMetric : " range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)",
weightMetric : " weigh around 100 kg (65 + 5d10 \xD7 4d6 / 10 kg)",
scores : [1, 1, 1, 0, 0, 0],
features : {
"savage attacks" : {
name : "Savage Attacks",
minlevel : 1,
calcChanges : {
atkAdd : [
function (fields, v) {
if (v.isMeleeWeapon && (/d\d+/).test(fields.Damage_Die)) {
if (v.extraCritM) {
v.extraCritM += 1;
var extraCritRegex = /\d+(d\d+ extra on a crit(ical)?( hit)? in melee)/i;
fields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');
} else {
v.extraCritM = 1;
fields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\d+).*/, '$1') + ' extra on a crit in melee';
}
}
},
"My melee weapon attacks roll 1 additional dice on a critical hit."
]
}
}
},
trait : "Feral Tiefling Half-Orc: Choose one of the tiefling heritage sub races. Choose Asmodeus for the standard Infernal Legacy"
},
RaceList["half-orc-delvilishtieflingvariant"] = {
regExpSearch : /^(?=.*devilish)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Devilish Tiefling Half-orc",
sortname : "Half-orc, Devilish Tiefling",
source : [["SRD", 7], ["P", 41], ["HB", 0]],
plural : "Devilish Tiefling Half-orcs",
size : 3,
speed : {
walk : { spd : 30, enc : 20 }
},
languageProfs : ["Common", "Orc", "Infernal"],
vision : [["Darkvision", 60]],
age : " reach adulthood around age 14 and rarely live longer than 75 years",
height : " range from 5 to well over 6 feet tall (4'10\" + 2d10\")",
weight : " weigh around 215 lb (140 + 2d10 \xD7 2d6 lb)",
heightMetric : " range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)",
weightMetric : " weigh around 100 kg (65 + 5d10 \xD7 4d6 / 10 kg)",
scores : [1, 0, 1, 0, 0, 1],
features : {
"savage attacks" : {
name : "Savage Attacks",
minlevel : 1,
calcChanges : {
atkAdd : [
function (fields, v) {
if (v.isMeleeWeapon && (/d\d+/).test(fields.Damage_Die)) {
if (v.extraCritM) {
v.extraCritM += 1;
var extraCritRegex = /\d+(d\d+ extra on a crit(ical)?( hit)? in melee)/i;
fields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');
} else {
v.extraCritM = 1;
fields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\d+).*/, '$1') + ' extra on a crit in melee';
}
}
},
"My melee weapon attacks roll 1 additional dice on a critical hit."
]
}
}
},
trait : "Devilish Tiefling Half-Orc: Choose one of the tiefling heritage sub races. Choose Asmodeus for the standard Infernal Legacy"
},
AddRacialVariant(
"half-orc-feraltieflingvariant",
"asmodeus",
{
regExpSearch : /^(?=.*feral)(?=.*asmodeus)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Feral Asmodeus Tiefling Half-Orc",
source : ["HB", 0],
plural : "Feral Asmodeus Tiefling Half-Orcs",
trait : "Feral Asmodeus Tiefling Half-Orcs (+1 Strength, +1 Dexterity, +1 Constitution)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nInfernal Legacy: I know the Thaumaturgy cantrip. At 3rd level, I can cast Hellish Rebuke once per long rest as a 2nd-level spell. At 5th level, I can also cast Darkness once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingAbility : 6,
spellcastingBonus : {
name : "Infernal Legacy (level 1)",
spells : ["thaumaturgy"],
selection : ["thaumaturgy"],
firstCol : 'atwill'
},
features : {
"hellish rebuke" : {
name : "Infernal Legacy (level 3)",
limfeaname : "Hellish Rebuke (3d10)",
minlevel : 3,
usages : 1,
recovery : "long rest",
spellcastingBonus : {
name : "Infernal Legacy (level 3)",
spells : ["hellish rebuke"],
selection : ["hellish rebuke"],
firstCol : "oncelr"
},
spellChanges : {
"hellish rebuke" : {
description : "Cast when taking damage, creature that dealt damage takes 3d10 Fire damage; save halves",
changes : "Using Infernal Legacy, I cast Hellish Rebuke as if I'm using a 2nd-level spell slot, doing 3d10 damage."
}
}
},
"darkness" : {
name : "Infernal Legacy (level 5)",
limfeaname : "Darkness",
minlevel : 5,
usages : 1,
recovery : "long rest",
spellcastingBonus : {
name : "Infernal Legacy (level 5)",
spells : ["darkness"],
selection : ["darkness"],
firstCol : "oncelr"
}
}
},
}
);
AddRacialVariant(
"half-orc-feraltieflingvariant",
"baalzebul",
{
regExpSearch : /^(?=.*feral)(?=.*baalzebul)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Feral Baalzebul Tiefling Half-Orc",
source : ["HB", 0],
plural : "Feral Baalzebul Tiefling Half-Orcs",
trait : "Feral Baalzebul Tiefling Half-Orcs (+1 Strength, +1 Dexterity, +1 Constitution)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Maladomini: I know the Thaumaturgy cantrip. At 3rd level, I can cast the Ray of Sickness spell once per long rest as a 2nd-level spell. At 5th level, I can also cast the Crown of Madness spell once per long rest. Charisma is my spellcasting ability for these spells.",
abilitySave : 6,
spellcastingAbility : 6,
spellcastingBonus : {
name : "Legacy of Maladomini (1)",
spells : ["thaumaturgy"],
selection : ["thaumaturgy"],
atwill : true
},
features : {
"ray of sickness" : {
name : "Ray of Sickness",
minlevel : 3,
usages : 1,
additional : "3d8",
recovery : "long rest",
tooltip : " (Legacy of Maladomini)",
action : ["action", " (3d8)"],
spellcastingBonus : {
name : "Legacy of Maladomini (3)",
spells : ["ray of sickness"],
selection : ["ray of sickness"],
oncelr : true
}
},
"crown of madness" : {
name : "Crown of Madness",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Maladomini)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Maladomini (5)",
spells : ["crown of madness"],
selection : ["crown of madness"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-feraltieflingvariant",
"dispater",
{
regExpSearch : /^(?=.*feral)(?=.*dispater)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Feral Dispater Tiefling Half-Orc",
source : ["HB", 0],
plural : "Feral Dispater Tiefling Half-Orcs",
trait : "Feral Dispater Tiefling Half-Orcs (+1 Strength, +1 Dexterity, +1 Constitution)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Dis: I know the Thaumaturgy cantrip. At 3rd level, I can cast the Disguise Self spell once per long rest. At 5th level, I can also cast the Detect Thoughts spell once per long rest. Charisma is my spellcasting ability for these spells.",
abilitySave : 6,
spellcastingAbility : 6,
spellcastingBonus : {
name : "Legacy of Dis (level 1)",
spells : ["thaumaturgy"],
selection : ["thaumaturgy"],
atwill : true
},
features : {
"disguise self" : {
name : "Disguise Self",
minlevel : 3,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Dis)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Dis (level 3)",
spells : ["disguise self"],
selection : ["disguise self"],
oncelr : true
}
},
"detect thoughts" : {
name : "Detect Thoughts",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Dis)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Dis (level 5)",
spells : ["detect thoughts"],
selection : ["detect thoughts"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-feraltieflingvariant",
"fierna",
{
regExpSearch : /^(?=.*feral)(?=.*fierna)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Feral Fierna Tiefling Half-Orc",
source : ["HB", 0],
plural : "Feral Fierna Tiefling Half-Orcs",
trait : "Feral Fierna Tiefling Half-Orcs (+1 Strength, +1 Dexterity, +1 Constitution)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Phlegethos: I know the Friends cantrip. At 3rd level, I can cast the Charm Person spell once per long rest as a 2nd-level spell. At 5th level, I can also cast the Suggestion spell once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingBonus : {
name : "Legacy of Phlegethos (1)",
spells : ["friends"],
selection : ["friends"],
atwill : true
},
features : {
"charm person" : {
name : "Charm Person",
minlevel : 3,
usages : 1,
additional : "2 targets",
recovery : "long rest",
tooltip : " (Legacy of Phlegethos)",
action : ["action", " (2 targets)"],
spellcastingBonus : {
name : "Legacy of Phlegethos (3)",
spells : ["charm person"],
selection : ["charm person"],
oncelr : true
}
},
"suggestion" : {
name : "Suggestion",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Phlegethos)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Phlegethos (5)",
spells : ["suggestion"],
selection : ["suggestion"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-feraltieflingvariant",
"glasya",
{
regExpSearch : /^(?=.*feral)(?=.*glasya)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Feral Glasya Tiefling Half-Orc",
source : ["HB", 0],
plural : "Feral Glasya Tiefling Half-Orcs",
trait : "Feral Glasya Tiefling Half-Orcs (+1 Strength, +1 Dexterity, +1 Constitution)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Malbolge: I know the Minor Illusion cantrip. At 3rd level, I can cast the Disguise Self spell once per long rest. At 5th level, I can also cast the Invisibility spell once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingBonus : {
name : "Legacy of Malbolge (1)",
spells : ["minor illusion"],
selection : ["minor illusion"],
atwill : true
},
features : {
"disguise self" : {
name : "Disguise Self",
minlevel : 3,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Malbolge)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Malbolge (3)",
spells : ["disguise self"],
selection : ["disguise self"],
oncelr : true
}
},
"invisibility" : {
name : "Invisibility",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Malbolge)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Malbolge (5)",
spells : ["invisibility"],
selection : ["invisibility"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-feraltieflingvariant",
"levistus",
{
regExpSearch : /^(?=.*feral)(?=.*levistus)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Feral Levistus Tiefling Half-Orc",
source : ["HB", 0],
plural : "Feral Levistus Tiefling Half-Orcs",
trait : "Feral Glasya Levistus Half-Orcs (+1 Strength, +1 Dexterity, +1 Constitution)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Stygia: I know the Ray of Frost cantrip. At 3rd level, I can cast the Armor of Agathys spell once per long rest as a 2nd-level spell. At 5th level, I can also cast the Darkness spell once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingBonus : {
name : "Legacy of Malbolge (1)",
spells : ["minor illusion"],
selection : ["minor illusion"],
atwill : true
},
spellcastingBonus : {
name : "Legacy of Stygia (1)",
spells : ["ray of frost"],
selection : ["ray of frost"],
atwill : true
},
features : {
"armor of agathys" : {
name : "Armor of Agathys",
minlevel : 3,
usages : 1,
additional : "2nd-level",
recovery : "long rest",
tooltip : " (Legacy of Stygia)",
action : ["action", " (2nd-level)"],
spellcastingBonus : {
name : "Legacy of Stygia (3)",
spells : ["armor of agathys"],
selection : ["armor of agathys"],
oncelr : true
}
},
"darkness" : {
name : "Darkness",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Stygia)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Stygia (5)",
spells : ["darkness"],
selection : ["darkness"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-feraltieflingvariant",
"mammon",
{
regExpSearch : /^(?=.*feral)(?=.*mammon)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Feral Mammon Tiefling Half-Orc",
source : ["HB", 0],
plural : "Feral Mammon Tiefling Half-Orcs",
trait : "Feral Mammon Levistus Half-Orcs (+1 Strength, +1 Dexterity, +1 Constitution)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Minauros: I know the Mage Hand cantrip. At 3rd level, I can cast the Tenser's Floating Disk spell once per short rest. At 5th level, I can also cast the Arcane Lock spell without a material component once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingBonus : {
name : "Legacy of Minauros (1)",
spells : ["mage hand"],
selection : ["mage hand"],
atwill : true
},
features : {
"tenser's floating disk" : {
name : "Tenser's Floating Disk",
minlevel : 3,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Minauros)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Minauros (3)",
spells : ["tenser's floating disk"],
selection : ["tenser's floating disk"],
oncesr : true
}
},
"arcane lock" : {
name : "Arcane Lock",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Minauros)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Minauros (5)",
spells : ["arcane lock"],
selection : ["arcane lock"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-feraltieflingvariant",
"mephistopheles",
{
regExpSearch : /^(?=.*feral)(?=.*mephistopheles)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Feral Mephistopheles Tiefling Half-Orc",
source : ["HB", 0],
plural : "Feral Mephistopheles Tiefling Half-Orcs",
trait : "Feral Mephistopheles Levistus Half-Orcs (+1 Strength, +1 Dexterity, +1 Constitution)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Cania: I know the Mage Hand cantrip. At 3rd level, I can cast the Burning Hands spell once per long rest as a 2nd-level spell. At 5th level, I can also cast the Flame Blade spell once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingBonus : {
name : "Legacy of Cania (level 1)",
spells : ["mage hand"],
selection : ["mage hand"],
atwill : true
},
features : {
"burning hands" : {
name : "Burning Hands",
additional : "4d6",
minlevel : 3,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Cania)",
action : ["action", " (4d6)"],
spellcastingBonus : {
name : "Legacy of Cania (level 3)",
spells : ["burning hands"],
selection : ["burning hands"],
oncelr : true
}
},
"flame blade" : {
name : "Flame Blade",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Cania)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Cania (level 5)",
spells : ["flame blade"],
selection : ["flame blade"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-feraltieflingvariant",
"zariel",
{
regExpSearch : /^(?=.*feral)(?=.*zariel)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Feral Zariel Tiefling Half-Orc",
source : ["HB", 0],
plural : "Feral Zariel Tiefling Half-Orcs",
trait : "Feral Zariel Levistus Half-Orcs (+1 Strength, +1 Dexterity, +1 Constitution)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Avernus: I know the Thaumaturgy cantrip. At 3rd level, I can cast the Searing Smite spell once per long rest as a 2nd-level spell. At 5th level, I can also cast the Branding Smite spell once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingBonus : {
name : "Legacy of Cania (level 1)",
spells : ["mage hand"],
selection : ["mage hand"],
atwill : true
},
spellcastingBonus : {
name : "Legacy of Avernus (1)",
spells : ["thaumaturgy"],
selection : ["thaumaturgy"],
atwill : true
},
features : {
"searing smite" : {
name : "Searing Smite",
additional : "2d6",
minlevel : 3,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Avernus)",
action : ["bonus action", " (2d6)"],
spellcastingBonus : {
name : "Legacy of Avernus (3)",
spells : ["searing smite"],
selection : ["searing smite"],
oncelr : true
}
},
"branding smite" : {
name : "Branding Smite",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Avernus)",
action : ["bonus action", ""],
spellcastingBonus : {
name : "Legacy of Avernus (5)",
spells : ["branding smite"],
selection : ["branding smite"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-devilishtieflingvariant",
"asmodeus",
{
regExpSearch : /^(?=.*devilish)(?=.*asmodeus)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Devilish Asmodeus Tiefling Half-Orc",
source : ["HB", 0],
plural : "Devilish Asmodeus Tiefling Half-Orcs",
trait : "Devilish Asmodeus Tiefling Half-Orcs (+1 Strength, +1 Constitution, +1 Charisma)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nInfernal Legacy: I know the Thaumaturgy cantrip. At 3rd level, I can cast Hellish Rebuke once per long rest as a 2nd-level spell. At 5th level, I can also cast Darkness once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingAbility : 6,
spellcastingBonus : {
name : "Infernal Legacy (level 1)",
spells : ["thaumaturgy"],
selection : ["thaumaturgy"],
firstCol : 'atwill'
},
features : {
"hellish rebuke" : {
name : "Infernal Legacy (level 3)",
limfeaname : "Hellish Rebuke (3d10)",
minlevel : 3,
usages : 1,
recovery : "long rest",
spellcastingBonus : {
name : "Infernal Legacy (level 3)",
spells : ["hellish rebuke"],
selection : ["hellish rebuke"],
firstCol : "oncelr"
},
spellChanges : {
"hellish rebuke" : {
description : "Cast when taking damage, creature that dealt damage takes 3d10 Fire damage; save halves",
changes : "Using Infernal Legacy, I cast Hellish Rebuke as if I'm using a 2nd-level spell slot, doing 3d10 damage."
}
}
},
"darkness" : {
name : "Infernal Legacy (level 5)",
limfeaname : "Darkness",
minlevel : 5,
usages : 1,
recovery : "long rest",
spellcastingBonus : {
name : "Infernal Legacy (level 5)",
spells : ["darkness"],
selection : ["darkness"],
firstCol : "oncelr"
}
}
},
}
);
AddRacialVariant(
"half-orc-devilishtieflingvariant",
"baalzebul",
{
regExpSearch : /^(?=.*devilish)(?=.*baalzebul)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Devilish Baalzebul Tiefling Half-Orc",
source : ["HB", 0],
plural : "Devilish Baalzebul Tiefling Half-Orcs",
trait : "Devilish Baalzebul Tiefling Half-Orcs (+1 Strength, +1 Constitution, +1 Charisma)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Maladomini: I know the Thaumaturgy cantrip. At 3rd level, I can cast the Ray of Sickness spell once per long rest as a 2nd-level spell. At 5th level, I can also cast the Crown of Madness spell once per long rest. Charisma is my spellcasting ability for these spells.",
abilitySave : 6,
spellcastingAbility : 6,
spellcastingBonus : {
name : "Legacy of Maladomini (1)",
spells : ["thaumaturgy"],
selection : ["thaumaturgy"],
atwill : true
},
features : {
"ray of sickness" : {
name : "Ray of Sickness",
minlevel : 3,
usages : 1,
additional : "3d8",
recovery : "long rest",
tooltip : " (Legacy of Maladomini)",
action : ["action", " (3d8)"],
spellcastingBonus : {
name : "Legacy of Maladomini (3)",
spells : ["ray of sickness"],
selection : ["ray of sickness"],
oncelr : true
}
},
"crown of madness" : {
name : "Crown of Madness",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Maladomini)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Maladomini (5)",
spells : ["crown of madness"],
selection : ["crown of madness"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-devilishtieflingvariant",
"dispater",
{
regExpSearch : /^(?=.*devilish)(?=.*dispater)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Devilish Dispater Tiefling Half-Orc",
source : ["HB", 0],
plural : "Devilish Dispater Tiefling Half-Orcs",
trait : "Devilish Dispater Tiefling Half-Orcs (+1 Strength, +1 Constitution, +1 Charisma)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Dis: I know the Thaumaturgy cantrip. At 3rd level, I can cast the Disguise Self spell once per long rest. At 5th level, I can also cast the Detect Thoughts spell once per long rest. Charisma is my spellcasting ability for these spells.",
abilitySave : 6,
spellcastingAbility : 6,
spellcastingBonus : {
name : "Legacy of Dis (level 1)",
spells : ["thaumaturgy"],
selection : ["thaumaturgy"],
atwill : true
},
features : {
"disguise self" : {
name : "Disguise Self",
minlevel : 3,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Dis)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Dis (level 3)",
spells : ["disguise self"],
selection : ["disguise self"],
oncelr : true
}
},
"detect thoughts" : {
name : "Detect Thoughts",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Dis)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Dis (level 5)",
spells : ["detect thoughts"],
selection : ["detect thoughts"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-devilishtieflingvariant",
"fierna",
{
regExpSearch : /^(?=.*devilish)(?=.*fierna)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Devilish Fierna Tiefling Half-Orc",
source : ["HB", 0],
plural : "Devilish Fierna Tiefling Half-Orcs",
trait : "Devilish Fierna Tiefling Half-Orcs (+1 Strength, +1 Constitution, +1 Charisma)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Phlegethos: I know the Friends cantrip. At 3rd level, I can cast the Charm Person spell once per long rest as a 2nd-level spell. At 5th level, I can also cast the Suggestion spell once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingBonus : {
name : "Legacy of Phlegethos (1)",
spells : ["friends"],
selection : ["friends"],
atwill : true
},
features : {
"charm person" : {
name : "Charm Person",
minlevel : 3,
usages : 1,
additional : "2 targets",
recovery : "long rest",
tooltip : " (Legacy of Phlegethos)",
action : ["action", " (2 targets)"],
spellcastingBonus : {
name : "Legacy of Phlegethos (3)",
spells : ["charm person"],
selection : ["charm person"],
oncelr : true
}
},
"suggestion" : {
name : "Suggestion",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Phlegethos)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Phlegethos (5)",
spells : ["suggestion"],
selection : ["suggestion"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-devilishtieflingvariant",
"glasya",
{
regExpSearch : /^(?=.*devilish)(?=.*glasya)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Devilish Glasya Tiefling Half-Orc",
source : ["HB", 0],
plural : "Devilish Glasya Tiefling Half-Orcs",
trait : "Devilish Glasya Tiefling Half-Orcs (+1 Strength, +1 Constitution, +1 Charisma)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Malbolge: I know the Minor Illusion cantrip. At 3rd level, I can cast the Disguise Self spell once per long rest. At 5th level, I can also cast the Invisibility spell once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingBonus : {
name : "Legacy of Malbolge (1)",
spells : ["minor illusion"],
selection : ["minor illusion"],
atwill : true
},
features : {
"disguise self" : {
name : "Disguise Self",
minlevel : 3,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Malbolge)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Malbolge (3)",
spells : ["disguise self"],
selection : ["disguise self"],
oncelr : true
}
},
"invisibility" : {
name : "Invisibility",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Malbolge)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Malbolge (5)",
spells : ["invisibility"],
selection : ["invisibility"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-devilishtieflingvariant",
"levistus",
{
regExpSearch : /^(?=.*devilish)(?=.*levistus)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Devilish Levistus Tiefling Half-Orc",
source : ["HB", 0],
plural : "Devilish Levistus Tiefling Half-Orcs",
trait : "Devilish Glasya Levistus Half-Orcs (+1 Strength, +1 Constitution, +1 Charisma)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Stygia: I know the Ray of Frost cantrip. At 3rd level, I can cast the Armor of Agathys spell once per long rest as a 2nd-level spell. At 5th level, I can also cast the Darkness spell once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingBonus : {
name : "Legacy of Malbolge (1)",
spells : ["minor illusion"],
selection : ["minor illusion"],
atwill : true
},
spellcastingBonus : {
name : "Legacy of Stygia (1)",
spells : ["ray of frost"],
selection : ["ray of frost"],
atwill : true
},
features : {
"armor of agathys" : {
name : "Armor of Agathys",
minlevel : 3,
usages : 1,
additional : "2nd-level",
recovery : "long rest",
tooltip : " (Legacy of Stygia)",
action : ["action", " (2nd-level)"],
spellcastingBonus : {
name : "Legacy of Stygia (3)",
spells : ["armor of agathys"],
selection : ["armor of agathys"],
oncelr : true
}
},
"darkness" : {
name : "Darkness",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Stygia)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Stygia (5)",
spells : ["darkness"],
selection : ["darkness"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-devilishtieflingvariant",
"mammon",
{
regExpSearch : /^(?=.*devilish)(?=.*mammon)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Devilish Mammon Tiefling Half-Orc",
source : ["HB", 0],
plural : "Devilish Mammon Tiefling Half-Orcs",
trait : "Devilish Mammon Levistus Half-Orcs (+1 Strength, +1 Constitution, +1 Charisma)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Minauros: I know the Mage Hand cantrip. At 3rd level, I can cast the Tenser's Floating Disk spell once per short rest. At 5th level, I can also cast the Arcane Lock spell without a material component once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingBonus : {
name : "Legacy of Minauros (1)",
spells : ["mage hand"],
selection : ["mage hand"],
atwill : true
},
features : {
"tenser's floating disk" : {
name : "Tenser's Floating Disk",
minlevel : 3,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Minauros)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Minauros (3)",
spells : ["tenser's floating disk"],
selection : ["tenser's floating disk"],
oncesr : true
}
},
"arcane lock" : {
name : "Arcane Lock",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Minauros)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Minauros (5)",
spells : ["arcane lock"],
selection : ["arcane lock"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-devilishtieflingvariant",
"mephistopheles",
{
regExpSearch : /^(?=.*devilish)(?=.*mephistopheles)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Devilish Mephistopheles Tiefling Half-Orc",
source : ["HB", 0],
plural : "Devilish Mephistopheles Tiefling Half-Orcs",
trait : "Devilish Mephistopheles Levistus Half-Orcs (+1 Strength, +1 Constitution, +1 Charisma)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Cania: I know the Mage Hand cantrip. At 3rd level, I can cast the Burning Hands spell once per long rest as a 2nd-level spell. At 5th level, I can also cast the Flame Blade spell once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingBonus : {
name : "Legacy of Cania (level 1)",
spells : ["mage hand"],
selection : ["mage hand"],
atwill : true
},
features : {
"burning hands" : {
name : "Burning Hands",
additional : "4d6",
minlevel : 3,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Cania)",
action : ["action", " (4d6)"],
spellcastingBonus : {
name : "Legacy of Cania (level 3)",
spells : ["burning hands"],
selection : ["burning hands"],
oncelr : true
}
},
"flame blade" : {
name : "Flame Blade",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Cania)",
action : ["action", ""],
spellcastingBonus : {
name : "Legacy of Cania (level 5)",
spells : ["flame blade"],
selection : ["flame blade"],
oncelr : true
}
}
}
}
);
AddRacialVariant(
"half-orc-devilishtieflingvariant",
"zariel",
{
regExpSearch : /^(?=.*devilish)(?=.*zariel)(?=.*tiefling)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Devilish Zariel Tiefling Half-Orc",
source : ["HB", 0],
plural : "Devilish Zariel Tiefling Half-Orcs",
trait : "Devilish Zariel Levistus Half-Orcs (+1 Strength, +1 Constitution, +1 Charisma)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLegacy of Avernus: I know the Thaumaturgy cantrip. At 3rd level, I can cast the Searing Smite spell once per long rest as a 2nd-level spell. At 5th level, I can also cast the Branding Smite spell once per long rest. Charisma is my spellcasting ability for these spells.",
spellcastingBonus : {
name : "Legacy of Cania (level 1)",
spells : ["mage hand"],
selection : ["mage hand"],
atwill : true
},
spellcastingBonus : {
name : "Legacy of Avernus (1)",
spells : ["thaumaturgy"],
selection : ["thaumaturgy"],
atwill : true
},
features : {
"searing smite" : {
name : "Searing Smite",
additional : "2d6",
minlevel : 3,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Avernus)",
action : ["bonus action", " (2d6)"],
spellcastingBonus : {
name : "Legacy of Avernus (3)",
spells : ["searing smite"],
selection : ["searing smite"],
oncelr : true
}
},
"branding smite" : {
name : "Branding Smite",
minlevel : 5,
usages : 1,
recovery : "long rest",
tooltip : " (Legacy of Avernus)",
action : ["bonus action", ""],
spellcastingBonus : {
name : "Legacy of Avernus (5)",
spells : ["branding smite"],
selection : ["branding smite"],
oncelr : true
}
}
}
}
);
RaceList["aarakocra half-orc"] = {
regExpSearch : /^(?=.*aarakocra)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Aarakocra Half-orc",
sortname : "Half-orc, Aarakocra",
source : ["HB", 0],
plural : "Aarakocra Half-orcs",
size : 3,
speed : {
walk : { spd : 30, enc : 20 },
fly : { spd: 30, enc: 20 }
},
languageProfs : ["Common", "Orc", "Aarakocra"],
vision : [["Darkvision", 60]],
skills : ["Intimidation"],
age : " reach adulthood around age 14 and rarely live longer than 75 years",
height : " range from 5 to well over 6 feet tall (4'10\" + 2d10\")",
weight : " weigh around 215 lb (140 + 2d10 \xD7 2d6 lb)",
heightMetric : " range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)",
weightMetric : " weigh around 100 kg (65 + 5d10 \xD7 4d6 / 10 kg)",
scores : [1, 1, 0, 0, 1, 0],
features : {
"savage attacks" : {
name : "Savage Attacks",
minlevel : 1,
calcChanges : {
atkAdd : [
function (fields, v) {
if (v.isMeleeWeapon && (/d\d+/).test(fields.Damage_Die)) {
if (v.extraCritM) {
v.extraCritM += 1;
var extraCritRegex = /\d+(d\d+ extra on a crit(ical)?( hit)? in melee)/i;
fields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');
} else {
v.extraCritM = 1;
fields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\d+).*/, '$1') + ' extra on a crit in melee';
}
}
},
"My melee weapon attacks roll 1 additional dice on a critical hit."
]
}
}
},
trait : "Aarakocra Half-Orc (+1 Strength, +1 Dexterity, +1 Wisdom)" + (typePF ? "\n" : " ") + "\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nLimited Flight: I have a fly speed of 30ft. I can't be wearing heavy armor, and I fall if I end my turn in the air."
}
RaceList["genasi half-orc"] = {
regExpSearch : /^(?=.*genasi)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Genasi Half-orc",
sortname : "Half-orc, Genasi",
source : ["HB", 0],
plural : "Half-orcs",
size : 3,
speed : {
walk : { spd : 30, enc : 20 }
},
languageProfs : ["Common", "Orc", "Primordial"],
age : " reach adulthood around age 14 and rarely live longer than 75 years",
height : " range from 5 to well over 6 feet tall (4'10\" + 2d10\")",
weight : " weigh around 215 lb (140 + 2d10 \xD7 2d6 lb)",
heightMetric : " range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)",
weightMetric : " weigh around 100 kg (65 + 5d10 \xD7 4d6 / 10 kg)",
trait : "Genasi Half-Orc: Choose one of the four elemental sub races."
}
AddRacialVariant(
"genasi half-orc",
"air",
{
regExpSearch : /^(?=.*air)(?=.*genasi)(?=.*\bor(c|k)).*$/i,
name : "Air Genasi Half-Orc",
source : ["HB", 0],
plural : "Air Genasi Half-Orcs",
skills : ["Intimidation"],
scores : [1, 1, 1, 0, 0, 0],
features : {
"relentless endurance" : {
name : "Relentless Endurance",
minlevel : 1,
usages : 1,
recovery : "long rest"
},
"savage attacks" : {
name : "Savage Attacks",
minlevel : 1,
calcChanges : {
atkAdd : [
function (fields, v) {
if (v.isMeleeWeapon && (/d\d+/).test(fields.Damage_Die)) {
if (v.extraCritM) {
v.extraCritM += 1;
var extraCritRegex = /\d+(d\d+ extra on a crit(ical)?( hit)? in melee)/i;
fields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');
} else {
v.extraCritM = 1;
fields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\d+).*/, '$1') + ' extra on a crit in melee';
}
}
},
"My melee weapon attacks roll 1 additional dice on a critical hit."
]
}
}
},
trait : "Air Genasi Half-Orc (+1 Strength, +1 Dexterity, +1 Constitution)Relentless Endurance: When I am reduced to 0 hit points but not killed outright, I can drop to 1 hit point instead. I can't use this feature again until I finish a long rest.\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nSuperior Breath: I can hold my breath for 1 hour while not incapacitated.",
}
);
AddRacialVariant(
"genasi half-orc",
"earth",
{
regExpSearch : /^(?=.*Earth)(?=.*genasi)(?=.*\bor(c|k)).*$/i,
name : "Earth Genasi Half-Orc",
source : ["HB", 0],
plural : "Earth Genasi Half-Orcs",
skills : ["Intimidation"],
scores : [2, 0, 2, 0, 0, 0],
features : {
"relentless endurance" : {
name : "Relentless Endurance",
minlevel : 1,
usages : 1,
recovery : "long rest"
},
},
trait : "Earth Genasi Half-Orc (+2 Strength, +2 Constitution)\nRelentless Endurance: When I am reduced to 0 hit points but not killed outright, I can drop to 1 hit point instead. I can't use this feature again until I finish a long rest.\nEarth Walk: I can move across difficult terrain made of earth or stone without expending extra movement.",
}
);
AddRacialVariant(
"genasi half-orc",
"fire",
{
regExpSearch : /^(?=.*fire)(?=.*genasi)(?=.*\bor(c|k)).*$/i,
name : "Fire Genasi Half-Orc",
source : ["HB", 0],
plural : "Fire Genasi Half-Orcs",
vision : [["Darkvision", 60]],
scores : [1, 0, 1, 1, 0, 0],
abilitySave : 3,
spellcastingAbility : 3,
features : {
"savage attacks" : {
name : "Savage Attacks",
minlevel : 1,
calcChanges : {
atkAdd : [
function (fields, v) {
if (v.isMeleeWeapon && (/d\d+/).test(fields.Damage_Die)) {
if (v.extraCritM) {
v.extraCritM += 1;
var extraCritRegex = /\d+(d\d+ extra on a crit(ical)?( hit)? in melee)/i;
fields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');
} else {
v.extraCritM = 1;
fields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\d+).*/, '$1') + ' extra on a crit in melee';
}
}
},
"My melee weapon attacks roll 1 additional dice on a critical hit."
]
}
},
"burning hands" : {
name : "Burning Hands",
minlevel : 3,
usages : 1,
recovery : "long rest",
tooltip : " (Reach to the Blaze)",
action : ["action", ""],
spellcastingBonus : {
name : "Reach to the Blaze (level 3)",
spells : ["burning hands"],
selection : ["burning hands"],
oncelr : true
}
}
},
trait : "Fire Genasi Half-Orc (+1 Strength, +1 Constitution, +1 Intelligence)\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nReach to the Blaze: Once I reach 3rd level, I can cast the Burning Hands spell once as a 1st-level spell. I regain the ability to cast it this way when I finish a long rest. Constitution is my spellcasting ability for these spells.",
}
);
AddRacialVariant(
"genasi half-orc",
"water",
{
regExpSearch : /^(?=.*water)(?=.*genasi)(?=.*\bor(c|k)).*$/i,
name : "Water Genasi Half-Orc",
source : ["HB", 0],
plural : "Water Genasi Half-Orcs",
skills : ["Intimidation"],
speed : {
walk : { spd : 30, enc : 20 },
swim : { spd : 30, enc : 20 }
},
scores : [1, 0, 1, 0, 1, 0],
spellcastingAbility : 3,
spellcastingBonus : {
name : "Call to the Wave (level 1)",
spells : ["shape water"],
selection : ["shape water"],
atwill : true,
},
features : {
"relentless endurance" : {
name : "Relentless Endurance",
minlevel : 1,
usages : 1,
recovery : "long rest"
},
"create or destroy water" : {
name : "Create/Destroy Water (level 2)",
minlevel : 3,
usages : 1,
recovery : "long rest",
tooltip : " (Call to the Wave)",
action : ["action", ""],
spellcastingBonus : {
name : "Call to the Wave (level 3)",
spells : ["create or destroy water"],
selection : ["create or destroy water"],
oncelr : true
}
}
},
trait : "Water Genasi Half-Orc (+1 Strength, +1 Constitution, +1 Wisdom)\nRelentless Endurance: When I am reduced to 0 hit points but not killed outright, I can drop to 1 hit point instead. I can't use this feature again until I finish a long rest.\nCall to the Wave: I know the Shape Water cantrip. When I reach 3rd level, I can cast the Create or Destroy Water spell as a 2nd-level spell once with this trait, and I regain the ability to cast it this way when I finish a long rest. Constitution is my spellcasting ability for these spells.",
}
);
RaceList ["goliath half-orc"] = {
regExpSearch : /^(?=.*goliath)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Goliath Half-orc",
sortname : "Half-orc, Goliath",
source : ["HB", 0],
plural : "Goliath Half-orcs",
size : 3,
speed : {
walk : { spd : 30, enc : 20 }
},
languageProfs : ["Common", "Orc", "Giant"],
skills : ["Intimidation"],
age : " reach adulthood around age 14 and rarely live longer than 75 years",
height : " range from 5 to well over 6 feet tall (4'10\" + 2d10\")",
weight : " weigh around 215 lb (140 + 2d10 \xD7 2d6 lb)",
heightMetric : " range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)",
weightMetric : " weigh around 100 kg (65 + 5d10 \xD7 4d6 / 10 kg)",
scores : [2, 0, 1, 0, 0, 0],
features : {
"rugged endurance" : {
name : "Rugged Endurance",
minlevel : 1,
usages : 1,
recovery : "short",
action : ["reaction", ""],
},
"savage attacks" : {
name : "Savage Attacks",
minlevel : 1,
calcChanges : {
atkAdd : [
function (fields, v) {
if (v.isMeleeWeapon && (/d\d+/).test(fields.Damage_Die)) {
if (v.extraCritM) {
v.extraCritM += 1;
var extraCritRegex = /\d+(d\d+ extra on a crit(ical)?( hit)? in melee)/i;
fields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');
} else {
v.extraCritM = 1;
fields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\d+).*/, '$1') + ' extra on a crit in melee';
}
}
},
"My melee weapon attacks roll 1 additional dice on a critical hit."
]
}
}
},
trait : "Goliath Half-Orc (+2 Strength, +1 Constitution)" + (typePF ? "\n" : " ") + "\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nPowerful Build: I count as one size larger when determining my carrying capacity and the weight I can push, drag, or lift.\nRugged Endurance: When I am damaged, I can use my reaction to reduce the damaged by 1d6 + my Con mod.",
eval : "tDoc.getField('Carrying Capacity Multiplier').value *= 2;",
removeeval : "tDoc.getField('Carrying Capacity Multiplier').value /= 2;"
}
RaceList ["tortle half-orc"] = {
regExpSearch : /^(?=.*tortle)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Tortle Half-orc",
sortname : "Half-orc, Tortle",
source : ["HB", 0],
plural : "Tortle Half-orcs",
size : 3,
speed : {
walk : { spd : 30, enc : 20 }
},
languageProfs : ["Common", "Orc", "Aquan"],
skills : ["Intimidation"],
addarmor : "Tortle Half-orc's Shell",
age : " reach adulthood around age 14 and rarely live longer than 75 years",
height : " range from 5 to well over 6 feet tall (4'10\" + 2d10\")",
weight : " weigh around 215 lb (140 + 2d10 \xD7 2d6 lb)",
heightMetric : " range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)",
weightMetric : " weigh around 100 kg (65 + 5d10 \xD7 4d6 / 10 kg)",
scores : [2, 0, 0, 0, 1, 0],
features : {
"savage attacks" : {
name : "Savage Attacks",
minlevel : 1,
calcChanges : {
atkAdd : [
function (fields, v) {
if (v.isMeleeWeapon && (/d\d+/).test(fields.Damage_Die)) {
if (v.extraCritM) {
v.extraCritM += 1;
var extraCritRegex = /\d+(d\d+ extra on a crit(ical)?( hit)? in melee)/i;
fields.Description = fields.Description.replace(extraCritRegex, v.extraCritM + '$1');
} else {
v.extraCritM = 1;
fields.Description += (fields.Description ? '; ' : '') + v.extraCritM + fields.Damage_Die.replace(/.*(d\d+).*/, '$1') + ' extra on a crit in melee';
}
}
},
"My melee weapon attacks roll 1 additional dice on a critical hit."
]
}
}
},
trait : "Tortle Half-Orc (+2 Strength, +1 Constitution)" + (typePF ? "\n" : " ") + "\nSavage Attacks: When I score a critical hit with a melee weapon attack, I can roll one of the weapon's damage dice one additional time and add it to the extra damage of the critical hit.\nHold Breath: I can hold my breath for up to 1 hour at a time.\nNatural Armor: I have a base AC of 15 plus my Dex mod (max 2), but I have disadvantage on Athletics and Acrobatics checks if I don medium or heavy armor.",
}
ArmourList["tortle half-orc shell"] = {
regExpSearch : /^(?=.*tortle)(?=.*half)(?=.*\bor(c|k))(?=.*shell).*$/i,
name : "Tortle Half-orc's Shell",
source : ["TP", 4],
type : "medium",
ac : 15,
dex : 2,
stealthdis : false,
strReq : 0
};
RaceList ["aasimar half-orc"] = {
regExpSearch : /^(?=.*aasimar)(?=.*half)(?=.*\bor(c|k)).*$/i,
name : "Aasimar Half-orc",
sortname : "Half-orc, Aasimar",
source : ["HB", 0],
plural : "Aasimar Half-orcs",
size : 3,
speed : {
walk : { spd : 30, enc : 20 }
},
languageProfs : ["Common", "Orc", "Celestial"],
vision : [["Darkvision", 60]],
age : " reach adulthood around age 14 and rarely live longer than 75 years",
height : " range from 5 to well over 6 feet tall (4'10\" + 2d10\")",
weight : " weigh around 215 lb (140 + 2d10 \xD7 2d6 lb)",
heightMetric : " range from 1,5 to well over 1,8 metres tall (150 + 5d10 cm)",
weightMetric : " weigh around 100 kg (65 + 5d10 \xD7 4d6 / 10 kg)",
features : {
"relentless endurance" : {
name : "Relentless Endurance",
minlevel : 1,
usages : 1,
recovery : "long rest"
},
"divine surge" : {
name : "Divine Surge",
minlevel : 3,
usages : 3,
recovery : "long rest",
additional : levels.map(function (n) { return "+" + n + " damage"; })
}
},
trait : "Aasimar Half-Orc: Please choose an Aasimar Half-orc variant"
}
AddRacialVariant(
"aasimar half-orc",
"protector",
{
regExpSearch : /^(?=.*protector)(?=.*aasimar)(?=.*\bor(c|k)).*$/i,
name : "Protector Aasimar Half-Orc",
source : ["HB", 0],
plural : "Protector Aasimar Half-Orcs",
scores : [1, 0, 1, 0, 1, 0],
trait : "Protector Aasimar Half-orc (+1 Strength, +1 Constitution, +1 Wisdom)\nRelentless Endurance: When I am reduced to 0 hit points but not killed outright, I can drop to 1 hit point instead. I can't use this feature again until I finish a long rest.\nDivine Surge: Starting at 3rd level, when I deal damage to a creature with an attack or a spell, I can use my bonus action to deal necrotic or radiant damage equal to my level. I can do this 3 times per long rest.",
}
);
AddRacialVariant(
"aasimar half-orc",
"scourge",
{
regExpSearch : /^(?=.*scourge)(?=.*aasimar)(?=.*\bor(c|k)).*$/i,
name : "Scourge Aasimar Half-Orc",
source : ["HB", 0],
plural : "Scourge Aasimar Half-Orcs",
scores : [1, 0, 2, 0, 0, 0],
trait : "Scourge Aasimar Half-orc (+1 Strength, +2 Constitution)\nRelentless Endurance: When I am reduced to 0 hit points but not killed outright, I can drop to 1 hit point instead. I can't use this feature again until I finish a long rest.\nDivine Surge: Starting at 3rd level, when I deal damage to a creature with an attack or a spell, I can use my bonus action to deal necrotic or radiant damage equal to my level. I can do this 3 times per long rest.",
}
);
AddRacialVariant(
"aasimar half-orc",
"fallen",
{
regExpSearch : /^(?=.*fallen)(?=.*aasimar)(?=.*\bor(c|k)).*$/i,
name : "Fallen Aasimar Half-Orc",
source : ["HB", 0],
plural : "Fallen Aasimar Half-Orcs",
scores : [2, 0, 0, 0, 0, 1],
trait : "Fallen Aasimar Half-orc (+2 Strength, +1 Charisma)\nRelentless Endurance: When I am reduced to 0 hit points but not killed outright, I can drop to 1 hit point instead. I can't use this feature again until I finish a long rest.\nDivine Surge: Starting at 3rd level, when I deal damage to a creature with an attack or a spell, I can use my bonus action to deal necrotic or radiant damage equal to my level. I can do this 3 times per long rest.",
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment